pub struct HookConfig {
pub channel_capacity: usize,
pub pre_create: Option<PreCreateCallback>,
pub pre_finish: Option<PreFinishCallback>,
pub pre_terminate: Option<PreTerminateCallback>,
}Expand description
Hook configuration attached to Config.
Fields§
§channel_capacity: usizeCapacity of the broadcast channel. 0 means hooks are disabled.
pre_create: Option<PreCreateCallback>§pre_finish: Option<PreFinishCallback>§pre_terminate: Option<PreTerminateCallback>Implementations§
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
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 moreSource§impl Debug for HookConfig
impl Debug for HookConfig
Source§impl Default for HookConfig
impl Default for HookConfig
Source§fn default() -> HookConfig
fn default() -> HookConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HookConfig
impl !RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnsafeUnpin for HookConfig
impl !UnwindSafe for HookConfig
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