pub struct NotifyHandler<T: Send + Sync + 'static> { /* private fields */ }Expand description
A registered power transition notification handler.
Bound to a static state cell and a safe fn(&T, Event, State, State) callback.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for NotifyHandler<T>
impl<T> !RefUnwindSafe for NotifyHandler<T>
impl<T> Send for NotifyHandler<T>
impl<T> Unpin for NotifyHandler<T>
impl<T> UnsafeUnpin for NotifyHandler<T>
impl<T> !UnwindSafe for NotifyHandler<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