Struct riot_sys::ztimer_periodic_t
source · #[repr(C)]pub struct ztimer_periodic_t {
pub timer: ztimer_t,
pub clock: *mut ztimer_clock_t,
pub interval: u32,
pub last: ztimer_now_t,
pub callback: ztimer_periodic_callback_t,
pub arg: *mut c_void,
}
Expand description
@brief ztimer periodic structure
Fields§
§timer: ztimer_t
< timer object used for this timer
clock: *mut ztimer_clock_t
< clock for this timer
interval: u32
< interval of this timer
last: ztimer_now_t
< last trigger time
callback: ztimer_periodic_callback_t
< called on each trigger
arg: *mut c_void
< argument for callback
Trait Implementations§
source§impl Clone for ztimer_periodic_t
impl Clone for ztimer_periodic_t
source§fn clone(&self) -> ztimer_periodic_t
fn clone(&self) -> ztimer_periodic_t
Returns a copy 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 ztimer_periodic_t
impl Debug for ztimer_periodic_t
source§impl Default for ztimer_periodic_t
impl Default for ztimer_periodic_t
impl Copy for ztimer_periodic_t
Auto Trait Implementations§
impl RefUnwindSafe for ztimer_periodic_t
impl !Send for ztimer_periodic_t
impl !Sync for ztimer_periodic_t
impl Unpin for ztimer_periodic_t
impl UnwindSafe for ztimer_periodic_t
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