Context

Trait Context 

Source
pub trait Context {
    type Client: Client;

    // Required method
    fn enter_subsegment<N>(
        &self,
        namespace: N,
    ) -> SubsegmentSession<Self::Client, N>
       where N: Namespace + Send + Sync;
}
Expand description

Context.

Required Associated Types§

Source

type Client: Client

Client type.

Required Methods§

Source

fn enter_subsegment<N>( &self, namespace: N, ) -> SubsegmentSession<Self::Client, N>
where N: Namespace + Send + Sync,

Enters in a new subsegment.

SubsegmentSession records the end of the subsegment when it is dropped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§