Struct flowync::FlowerHandle
source · [−]pub struct FlowerHandle<SOME, OK> where
SOME: Clone + Send + Sync + 'static,
OK: Clone + Send + Sync + 'static, { /* private fields */ }Expand description
A handle for the Flower
Implementations
sourceimpl<SOME, OK> FlowerHandle<SOME, OK> where
SOME: Clone + Send + Sync + 'static,
OK: Clone + Send + Sync + 'static,
impl<SOME, OK> FlowerHandle<SOME, OK> where
SOME: Clone + Send + Sync + 'static,
OK: Clone + Send + Sync + 'static,
sourcepub fn should_cancel(&self) -> bool
pub fn should_cancel(&self) -> bool
Check if the current flower should be canceled
sourcepub async fn send_async(&self, _value: SOME)
pub async fn send_async(&self, _value: SOME)
Send current progress value asynchronously.
Trait Implementations
sourceimpl<SOME, OK> Clone for FlowerHandle<SOME, OK> where
SOME: Clone + Send + Sync + 'static,
OK: Clone + Send + Sync + 'static,
impl<SOME, OK> Clone for FlowerHandle<SOME, OK> where
SOME: Clone + Send + Sync + 'static,
OK: Clone + Send + Sync + 'static,
Auto Trait Implementations
impl<SOME, OK> !RefUnwindSafe for FlowerHandle<SOME, OK>
impl<SOME, OK> Send for FlowerHandle<SOME, OK>
impl<SOME, OK> Sync for FlowerHandle<SOME, OK>
impl<SOME, OK> Unpin for FlowerHandle<SOME, OK>
impl<SOME, OK> !UnwindSafe for FlowerHandle<SOME, OK>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more