crb_runtime

Trait Context

Source
pub trait Context: Send {
    type Address: Send + Clone;

    // Required method
    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.

Required Associated Types§

Source

type Address: Send + Clone

An address to interact with the context.

Required Methods§

Source

fn address(&self) -> &Self::Address

A reference to an address.

Implementors§