Guard

Trait Guard 

Source
pub trait Guard {
    type ResourceState;
    type RunningGuard: RunningGuard;

    // Required method
    fn start(self) -> (Self::ResourceState, Self::RunningGuard);
}

Required Associated Types§

Required Methods§

Source

fn start(self) -> (Self::ResourceState, Self::RunningGuard)

Implementors§