pub struct DebugSubsystemHooks {
pub channels: Option<Vec<String>>,
pub disable_guards: Option<DebugGuardBinding>,
pub enable_guards: Option<DebugGuardBinding>,
}Expand description
The wiring a subsystem contributes to a debug session (TS DebugSubsystemHooks): the log
channels raised while it is enabled, and its guard enabler and disabler. Every field is optional.
disable_guards must be safe after a missing or partially completed enable_guards, so a failed
enable can be unwound.
Fields§
§channels: Option<Vec<String>>§disable_guards: Option<DebugGuardBinding>§enable_guards: Option<DebugGuardBinding>Trait Implementations§
Source§impl Clone for DebugSubsystemHooks
impl Clone for DebugSubsystemHooks
Auto Trait Implementations§
impl !RefUnwindSafe for DebugSubsystemHooks
impl !UnwindSafe for DebugSubsystemHooks
impl Freeze for DebugSubsystemHooks
impl Send for DebugSubsystemHooks
impl Sync for DebugSubsystemHooks
impl Unpin for DebugSubsystemHooks
impl UnsafeUnpin for DebugSubsystemHooks
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