pub struct Execution { /* private fields */ }Expand description
The owner’s guard over one accepted lease. Dropping it, or
Execution::complete, gives the unit back and wakes the key. It is
the only way capacity returns: a caller that vanished mid-way changes
nothing until the owner’s work has actually ended.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Execution
impl !UnwindSafe for Execution
impl Freeze for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
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