Struct observer::context::Context[][src]

pub struct Context {
    pub created_on: DateTime<Utc>,
    pub span_stack: RefCell<Vec<Span>>,
    // some fields omitted
}

Fields

created_on: DateTime<Utc>span_stack: RefCell<Vec<Span>>

Implementations

impl Context[src]

pub fn new(id: String) -> Context[src]

pub fn id(&self) -> String[src]

pub fn start_span(&self, id: &str)[src]

pub fn end_span(&self, _is_critical: bool, err: Option<String>)[src]

pub fn finalise(&self)[src]

pub fn get_key(&self) -> String[src]

pub fn trace_without_data(&self, print_values: bool) -> String[src]

Trait Implementations

impl Debug for Context[src]

impl Serialize for Context[src]

Auto Trait Implementations

impl !RefUnwindSafe for Context

impl Send for Context

impl !Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> DebugAny for T where
    T: Any + Debug

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> UnsafeAny for T where
    T: Any