Struct want::SharedGiver
source · [−]pub struct SharedGiver { /* private fields */ }Expand description
A cloneable Giver.
It differs from Giver in that you cannot poll for want. It’s only
usable as a cancellation watcher.
Implementations
sourceimpl SharedGiver
impl SharedGiver
sourcepub fn is_wanting(&self) -> bool
pub fn is_wanting(&self) -> bool
Check if the Taker has called want() without parking a task.
This is safe to call outside of a futures task context, but other means of being notified is left to the user.
sourcepub fn is_canceled(&self) -> bool
pub fn is_canceled(&self) -> bool
Check if the Taker has canceled interest without parking a task.
Trait Implementations
sourceimpl Clone for SharedGiver
impl Clone for SharedGiver
sourcefn clone(&self) -> SharedGiver
fn clone(&self) -> SharedGiver
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SharedGiver
impl Send for SharedGiver
impl Sync for SharedGiver
impl Unpin for SharedGiver
impl !UnwindSafe for SharedGiver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more