pub struct Key<T: ?Sized> { /* private fields */ }
Expand description
A typed wrapper for key of Ops submitted into driver. It doesn’t free the inner on dropping. Instead, the memory is managed by the proactor. The inner is only freed when:
- The op is completed and the future asks the result.
into_inner
will be called by the proactor. - The op is completed and the future cancels it.
into_box
will be called by the proactor.
Implementations§
Trait Implementations§
impl<T: Eq + ?Sized> Eq for Key<T>
impl<T: ?Sized> StructuralPartialEq for Key<T>
impl<T: ?Sized> Unpin for Key<T>
Auto Trait Implementations§
impl<T> Freeze for Key<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for Key<T>
impl<T> !Send for Key<T>
impl<T> !Sync for Key<T>
impl<T> !UnwindSafe for Key<T>
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