pub struct PolicyHandler<T: Send + Sync + 'static> { /* private fields */ }Expand description
A registered power-policy handler bound to a static state cell.
Construct with PolicyHandler::new and register with set_policy.
The handler must be 'static (typically declared at module scope with
crate::shared! + this type).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PolicyHandler<T>
impl<T> !RefUnwindSafe for PolicyHandler<T>
impl<T> Send for PolicyHandler<T>
impl<T> Unpin for PolicyHandler<T>
impl<T> UnsafeUnpin for PolicyHandler<T>
impl<T> !UnwindSafe for PolicyHandler<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