pub struct AsyncKey<T>(/* private fields */);
Expand description
A Key
type which wraps a shared AsyncResult
.
Implementations§
Source§impl<T> AsyncKey<T>
impl<T> AsyncKey<T>
Sourcepub fn new() -> Self
pub fn new() -> Self
Equivalent to AsyncResult::new
to create a new shared AsyncResult
.
Sourcepub fn poll(&self) -> AsyncResult<T>
pub fn poll(&self) -> AsyncResult<T>
Equivalent to AsyncResult::poll
on the shared AsyncResult
.
Trait Implementations§
Source§impl<T> Key<T> for AsyncKey<T>
impl<T> Key<T> for AsyncKey<T>
Source§fn complete(self, value: T)
fn complete(self, value: T)
Equivalent to AsyncResult::complete
on the shared AsyncResult
Auto Trait Implementations§
impl<T> Freeze for AsyncKey<T>
impl<T> RefUnwindSafe for AsyncKey<T>
impl<T> Send for AsyncKey<T>where
T: Send,
impl<T> Sync for AsyncKey<T>where
T: Send,
impl<T> Unpin for AsyncKey<T>
impl<T> UnwindSafe for AsyncKey<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