pub struct LifecycleHooks { /* private fields */ }Expand description
Hooks for lifecycle events.
Implementations§
Source§impl LifecycleHooks
impl LifecycleHooks
Sourcepub fn emit_created(&self, name: &str)
pub fn emit_created(&self, name: &str)
Emit a created event.
Sourcepub fn emit_initialized(&self, name: &str)
pub fn emit_initialized(&self, name: &str)
Emit an initialized event.
Sourcepub fn emit_started(&self, name: &str)
pub fn emit_started(&self, name: &str)
Emit a started event.
Sourcepub fn emit_stopped(&self, name: &str)
pub fn emit_stopped(&self, name: &str)
Emit a stopped event.
Sourcepub fn emit_reloaded(&self, name: &str, count: u64)
pub fn emit_reloaded(&self, name: &str, count: u64)
Emit a reloaded event.
Sourcepub fn emit_unloaded(&self, name: &str)
pub fn emit_unloaded(&self, name: &str)
Emit an unloaded event.
Sourcepub fn emit_error(&self, name: &str, message: &str)
pub fn emit_error(&self, name: &str, message: &str)
Emit an error event.
Trait Implementations§
Source§impl Debug for LifecycleHooks
impl Debug for LifecycleHooks
Auto Trait Implementations§
impl Freeze for LifecycleHooks
impl !RefUnwindSafe for LifecycleHooks
impl Send for LifecycleHooks
impl Sync for LifecycleHooks
impl Unpin for LifecycleHooks
impl !UnwindSafe for LifecycleHooks
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