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§
Required Methods§
Sourcefn enter_subsegment<N>(
&self,
namespace: N,
) -> SubsegmentSession<Self::Client, N>
fn enter_subsegment<N>( &self, namespace: N, ) -> SubsegmentSession<Self::Client, N>
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.