pub struct HookRegistry<W: World> { /* private fields */ }Implementations§
Source§impl<W: World> HookRegistry<W>
impl<W: World> HookRegistry<W>
pub fn new() -> Self
pub fn register(&mut self, hook: HookDef<W>)
pub async fn run_before_all(&self)
pub async fn run_after_all(&self)
pub async fn run_before_scenario(&self, world: &mut W)
pub async fn run_after_scenario(&self, world: &mut W)
pub async fn run_before_step(&self, world: &mut W, step: &Step)
pub async fn run_after_step( &self, world: &mut W, step: &Step, result: &StepResult, )
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for HookRegistry<W>
impl<W> RefUnwindSafe for HookRegistry<W>
impl<W> Send for HookRegistry<W>
impl<W> Sync for HookRegistry<W>
impl<W> Unpin for HookRegistry<W>
impl<W> UnwindSafe for HookRegistry<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