Struct azure_core::Context
source · [−]pub struct Context { /* private fields */ }
Expand description
Pipeline execution context.
Implementations
sourceimpl Context
impl Context
sourcepub fn insert_or_replace<E>(&mut self, entity: E) -> Option<Arc<E>> where
E: Send + Sync + 'static,
pub fn insert_or_replace<E>(&mut self, entity: E) -> Option<Arc<E>> where
E: Send + Sync + 'static,
Inserts or replaces an entity in the type map. If an entity with the same type was displaced by the insert, it will be returned to the caller.
sourcepub fn insert<E>(&mut self, entity: E) -> &mut Self where
E: Send + Sync + 'static,
pub fn insert<E>(&mut self, entity: E) -> &mut Self where
E: Send + Sync + 'static,
Inserts an entity in the type map. If the an entity with the same type signature is already present it will be silently dropped. This function returns a mutable reference to the same Context so it can be chained to itself.
sourcepub fn remove<E>(&mut self) -> Option<Arc<E>> where
E: Send + Sync + 'static,
pub fn remove<E>(&mut self) -> Option<Arc<E>> where
E: Send + Sync + 'static,
Removes an entity from the type map. If present, the entity will be returned.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more