pub struct WatchdogRegistration { /* private fields */ }Expand description
Opaque non-clone claim for one pre-armed watchdog callback.
Implementations§
Source§impl WatchdogRegistration
impl WatchdogRegistration
Sourcepub const fn identity(&self) -> &TimerIdentity
pub const fn identity(&self) -> &TimerIdentity
Return the claimed logical identity.
Sourcepub fn ensure_scheduled(&self) -> Result<(), TimerError>
pub fn ensure_scheduled(&self) -> Result<(), TimerError>
Synchronously ensure one watchdog scheduler wake-up is authoritative.
Sourcepub fn cancel(&self) -> Result<(), TimerError>
pub fn cancel(&self) -> Result<(), TimerError>
Cancel the scheduler and any dispatched work callback.
Sourcepub fn unregister(self) -> Result<(), TimerError>
pub fn unregister(self) -> Result<(), TimerError>
Consume the claim and unregister its callback authority.
Auto Trait Implementations§
impl Freeze for WatchdogRegistration
impl RefUnwindSafe for WatchdogRegistration
impl Send for WatchdogRegistration
impl Sync for WatchdogRegistration
impl Unpin for WatchdogRegistration
impl UnsafeUnpin for WatchdogRegistration
impl UnwindSafe for WatchdogRegistration
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