pub enum HookDef<W: World> {
BeforeAll(BeforeAllFn),
AfterAll(AfterAllFn),
BeforeScenario(BeforeScenarioFn<W>),
AfterScenario(AfterScenarioFn<W>),
BeforeStep(BeforeStepFn<W>),
AfterStep(AfterStepFn<W>),
}Variants§
BeforeAll(BeforeAllFn)
AfterAll(AfterAllFn)
BeforeScenario(BeforeScenarioFn<W>)
AfterScenario(AfterScenarioFn<W>)
BeforeStep(BeforeStepFn<W>)
AfterStep(AfterStepFn<W>)
Implementations§
Source§impl<W: World> HookDef<W>
impl<W: World> HookDef<W>
pub fn before_all(f: BeforeAllFn) -> Self
pub fn after_all(f: AfterAllFn) -> Self
pub fn before_scenario(f: BeforeScenarioFn<W>) -> Self
pub fn after_scenario(f: AfterScenarioFn<W>) -> Self
pub fn before_step(f: BeforeStepFn<W>) -> Self
pub fn after_step(f: AfterStepFn<W>) -> Self
Auto Trait Implementations§
impl<W> Freeze for HookDef<W>
impl<W> RefUnwindSafe for HookDef<W>
impl<W> Send for HookDef<W>
impl<W> Sync for HookDef<W>
impl<W> Unpin for HookDef<W>
impl<W> UnwindSafe for HookDef<W>
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