Struct Context
pub struct Context(Arc<Sentinel>);Expand description
Registered DLT context.
Tuple Fields§
§0: Arc<Sentinel>Implementations§
§impl Context
impl Context
pub(crate) fn impl_register( app: App, context_id: Id, description: Option<&str>, level: Option<LogLevel>, trace_status: Option<TraceStatus>, ) -> Result<Self>
pub fn is_log_level_enabled(&self, level: LogLevel) -> bool
pub fn log(&self, level: LogLevel, msg: &mut MessageBuf) -> Result<()>
pub fn register_injection_callback<F>( &self, service_id: u32, cb: F, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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