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

pub struct Context {
    pub span_stack: RefCell<Vec<Span>>,
    pub queue: Box<dyn Queue>,
    // some fields omitted
}

Fields

span_stack: RefCell<Vec<Span>>queue: Box<dyn Queue>

Methods

impl Context[src]

pub fn new(id: String, queue: Box<dyn Queue>) -> Context[src]

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

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

pub fn finalise(&self) -> Result<()>[src]

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

Trait Implementations

impl Debug for Context[src]

impl Serialize for Context[src]

impl<'de> Deserialize<'de> for Context[src]

Auto Trait Implementations

impl !Send for Context

impl Unpin for Context

impl !Sync for Context

impl !UnwindSafe for Context

impl !RefUnwindSafe for Context

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> IntoSql for T

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