pub struct WillAsync<T> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T> Will<T> for WillAsync<T>
impl<T> Will<T> for WillAsync<T>
Source§fn is_started(&mut self) -> bool
fn is_started(&mut self) -> bool
Did this
Will
start?
Return true
when it did started (no matter it has stopped or not)Source§fn is_alive(&mut self) -> bool
fn is_alive(&mut self) -> bool
Is this
Will
alive?
Return true
when it has started and not stopped yet.Source§fn add_callback(&mut self, subscription: Arc<SubscriptionFunc<T>>)
fn add_callback(&mut self, subscription: Arc<SubscriptionFunc<T>>)
Add a callback called when it has completed. Read more
Source§fn remove_callback(&mut self, subscription: Arc<SubscriptionFunc<T>>)
fn remove_callback(&mut self, subscription: Arc<SubscriptionFunc<T>>)
Remove a callback called when it has completed. Read more
Auto Trait Implementations§
impl<T> Freeze for WillAsync<T>
impl<T> RefUnwindSafe for WillAsync<T>
impl<T> Send for WillAsync<T>
impl<T> Sync for WillAsync<T>
impl<T> Unpin for WillAsync<T>
impl<T> UnwindSafe for WillAsync<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