pub struct ContextSnapshotHeader { /* private fields */ }Expand description
Header carrying a ContextSnapshot for in-process (local) propagation.
This preserves local-only context values that would be lost during
serialization. Preferred over ContextHeader for same-process actors.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ContextSnapshotHeader
impl !UnwindSafe for ContextSnapshotHeader
impl Freeze for ContextSnapshotHeader
impl Send for ContextSnapshotHeader
impl Sync for ContextSnapshotHeader
impl Unpin for ContextSnapshotHeader
impl UnsafeUnpin for ContextSnapshotHeader
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
Source§impl<F> ContextFutureExt for F
impl<F> ContextFutureExt for F
Source§fn with(self, store: ContextStore) -> WithContext<Self>
fn with(self, store: ContextStore) -> WithContext<Self>
Wrap this future with a specific
ContextStore. Read moreSource§fn attach(self, snap: ContextSnapshot) -> WithContext<Self>
fn attach(self, snap: ContextSnapshot) -> WithContext<Self>
Attach a
ContextSnapshot as the active store for this future. Read moreSource§fn fork(self) -> WithContext<Self>
fn fork(self) -> WithContext<Self>
Fork the current context and wrap this future with the forked child. Read more
Source§fn capture(self) -> WithContext<Self>
fn capture(self) -> WithContext<Self>
Capture the current context and wrap this future with it. Read more