pub struct OperationContext();Expand description
Transfer the current operation to an owned worker. In production this is empty.
Implementations§
Source§impl OperationContext
impl OperationContext
Sourcepub fn attach(&self) -> OperationGuard
pub fn attach(&self) -> OperationGuard
Attach this operation until the returned guard drops.
Trait Implementations§
Source§impl Clone for OperationContext
impl Clone for OperationContext
Auto Trait Implementations§
impl Freeze for OperationContext
impl RefUnwindSafe for OperationContext
impl Send for OperationContext
impl Sync for OperationContext
impl Unpin for OperationContext
impl UnsafeUnpin for OperationContext
impl UnwindSafe for OperationContext
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