RunningGuard

Trait RunningGuard 

Source
pub trait RunningGuard {
    type StoppedResourceState;

    // Required methods
    fn is_safe(&self) -> bool;
    fn set_waker(&mut self, waker: Waker);
    unsafe fn stop(&mut self) -> Self::StoppedResourceState;
}

Required Associated Types§

Required Methods§

Source

fn is_safe(&self) -> bool

Source

fn set_waker(&mut self, waker: Waker)

Source

unsafe fn stop(&mut self) -> Self::StoppedResourceState

Implementors§