pub struct SharedGiver {
    pub(crate) inner: Arc<Inner>,
}Expand description
A cloneable Giver.
It differs from Giver in that you cannot poll for want. It’s only
usable as a cancellation watcher.
Fields§
§inner: Arc<Inner>Implementations§
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§
Source§fn clone(&self) -> SharedGiver
 
fn clone(&self) -> SharedGiver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
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