Struct mysten_common::sync::notify_read::Registration
source · pub struct Registration<'a, K: Eq + Hash + Clone, V: Clone> { /* private fields */ }
Expand description
Registration resolves to the value but also provides safe cancellation When Registration is dropped before it is resolved, we de-register from the pending list
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> !RefUnwindSafe for Registration<'a, K, V>
impl<'a, K, V> Send for Registration<'a, K, V>
impl<'a, K, V> Sync for Registration<'a, K, V>
impl<'a, K, V> Unpin for Registration<'a, K, V>where
K: Unpin,
impl<'a, K, V> !UnwindSafe for Registration<'a, K, V>
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more