pub struct Generation<'a> { /* private fields */ }Expand description
Wraps the current generation captured at op entry.
Acts as a witness that the caller holds an in-flight slot. Drop releases the slot.
Implementations§
Source§impl<'a> Generation<'a>
impl<'a> Generation<'a>
Trait Implementations§
Source§impl<'a> Drop for Generation<'a>
impl<'a> Drop for Generation<'a>
Auto Trait Implementations§
impl<'a> Freeze for Generation<'a>
impl<'a> RefUnwindSafe for Generation<'a>
impl<'a> Send for Generation<'a>
impl<'a> Sync for Generation<'a>
impl<'a> Unpin for Generation<'a>
impl<'a> UnsafeUnpin for Generation<'a>
impl<'a> UnwindSafe for Generation<'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