[][src]Struct stakker_log::LogCx

pub struct LogCx<'a> { /* fields omitted */ }

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]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.