[−][src]Struct stakker_log::LogCx
Logging context
This encapsulates a stakker::LogID
and a reference to
stakker::Core
. It allows logging to a particular context or
span without having to carry around a reference to a particular
actor. A reference to a LogCx
can be used as the [cx]
argument to any of the logging macros.
Implementations
impl<'a> LogCx<'a>
[src]
pub fn new(logid: LogID, core: &'a mut Core) -> Self
[src]
Create directly from LogID
and Core
reference
pub fn access_log_id(&self) -> LogID
[src]
Used by macros to obtain the LogID
pub fn access_core(&mut self) -> &mut Core
[src]
Used by macros to obtain the Core
reference
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LogCx<'a>
[src]
impl<'a> !Send for LogCx<'a>
[src]
impl<'a> !Sync for LogCx<'a>
[src]
impl<'a> Unpin for LogCx<'a>
[src]
impl<'a> !UnwindSafe for LogCx<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,