#[repr(C)]pub struct switch_timer {
pub interval: c_int,
pub flags: u32,
pub samples: c_uint,
pub samplecount: u32,
pub last_samplecount: u32,
pub timer_interface: *mut switch_timer_interface_t,
pub memory_pool: *mut switch_memory_pool_t,
pub private_info: *mut c_void,
pub diff: switch_size_t,
pub start: switch_time_t,
pub tick: u64,
}Expand description
\brief Abstract handler to a timer module
Fields§
§interval: c_inttime interval expressed in milliseconds
flags: u32flags to control behaviour
samples: c_uintsample count to increment by on each cycle
samplecount: u32current sample count based on samples parameter
last_samplecount: u32§timer_interface: *mut switch_timer_interface_tthe timer interface provided from a loadable module
memory_pool: *mut switch_memory_pool_tthe timer’s memory pool
private_info: *mut c_voidprivate data for loadable modules to store information
diff: switch_size_tremaining time from last call to _check()
start: switch_time_t§tick: u64Trait Implementations§
Source§impl Clone for switch_timer
impl Clone for switch_timer
Source§fn clone(&self) -> switch_timer
fn clone(&self) -> switch_timer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for switch_timer
impl Debug for switch_timer
impl Copy for switch_timer
Auto Trait Implementations§
impl Freeze for switch_timer
impl RefUnwindSafe for switch_timer
impl !Send for switch_timer
impl !Sync for switch_timer
impl Unpin for switch_timer
impl UnwindSafe for switch_timer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more