[][src]Trait scopeguard::Strategy

pub trait Strategy {
    fn should_run() -> bool;
}

Controls in which cases the associated code should be run

Required methods

fn should_run() -> bool

Return true if the guard’s associated code should run (in the context where this method is called).

Loading content...

Implementors

impl Strategy for Always[src]

impl Strategy for OnSuccess[src]

impl Strategy for OnUnwind[src]

Loading content...