pub enum ModuleEvent {
Loading {
path: String,
},
Loaded {
name: String,
duration_ms: u64,
},
LoadFailed {
path: String,
error: String,
},
Unloading {
name: String,
},
Unloaded {
name: String,
},
CallStarted {
module: String,
method: String,
},
CallCompleted {
module: String,
method: String,
duration_us: u64,
success: bool,
},
HealthCheck {
module: String,
healthy: bool,
},
ConfigChanged {
module: String,
},
}Expand description
Module lifecycle event.
Variants§
Loading
Module is being loaded.
Loaded
Module was loaded successfully.
LoadFailed
Module load failed.
Unloading
Module is being unloaded.
Unloaded
Module was unloaded.
CallStarted
Module call started.
CallCompleted
Module call completed.
HealthCheck
Module health check.
ConfigChanged
Module configuration changed.
Trait Implementations§
Source§impl Clone for ModuleEvent
impl Clone for ModuleEvent
Source§fn clone(&self) -> ModuleEvent
fn clone(&self) -> ModuleEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleEvent
impl RefUnwindSafe for ModuleEvent
impl Send for ModuleEvent
impl Sync for ModuleEvent
impl Unpin for ModuleEvent
impl UnsafeUnpin for ModuleEvent
impl UnwindSafe for ModuleEvent
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