pub struct DynContextBuilder(/* private fields */);Expand description
A builder for a DynContext
Implementations§
Source§impl DynContextBuilder
impl DynContextBuilder
Sourcepub fn add_key<T: 'static>(&mut self, value: T) -> &mut Self
pub fn add_key<T: 'static>(&mut self, value: T) -> &mut Self
Adds a context key. The value is stored according to its type
Sourcepub fn build(self) -> DynContext
pub fn build(self) -> DynContext
Builds into a usable context object
Trait Implementations§
Source§impl Debug for DynContextBuilder
impl Debug for DynContextBuilder
Source§impl Default for DynContextBuilder
impl Default for DynContextBuilder
Source§fn default() -> DynContextBuilder
fn default() -> DynContextBuilder
Returns the “default value” for a type. Read more