pub struct OperationCxGuard<'a> { /* private fields */ }Expand description
Restores the prior operation context when an actor-dispatched call ends.
The guard is deliberately lexical: cancellation authority cannot leak into the next command when a future returns early or unwinds.
Trait Implementations§
Source§impl Drop for OperationCxGuard<'_>
impl Drop for OperationCxGuard<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OperationCxGuard<'a>
impl<'a> !Send for OperationCxGuard<'a>
impl<'a> !Sync for OperationCxGuard<'a>
impl<'a> !UnwindSafe for OperationCxGuard<'a>
impl<'a> Freeze for OperationCxGuard<'a>
impl<'a> Unpin for OperationCxGuard<'a>
impl<'a> UnsafeUnpin for OperationCxGuard<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).