crb_runtime::contextTrait Context
Source pub trait Context: Send {
type Address: Send + Clone;
// Required methods
fn label(&self) -> &Label;
fn address(&self) -> &Self::Address;
}
Expand description
A commont methods of all contexts and spans for tracing and logging.
The have provide a reference to a label.
An address to interact with the context.
A label that used for logging all events around the context.
A reference to an address.
Label is a Context for cases when
context is not necessary, but for many
runtimes at least Label is required
for tracing.