pub struct RunningTask { /* private fields */ }Expand description
Task that is already scheduled for running.
Implementations§
Source§impl RunningTask
impl RunningTask
Sourcepub fn join(&self) -> MaybePanic
pub fn join(&self) -> MaybePanic
Block until the task has finished executing.
Sourcepub fn join_active(&self) -> MaybePanic
pub fn join_active(&self) -> MaybePanic
Block until the task has finished executing. Also, use the current thread to help in the meantime.
Sourcepub fn join_debug(&self, timeout: Duration) -> MaybePanic
pub fn join_debug(&self, timeout: Duration) -> MaybePanic
Block until the task has finished executing, with timeout. Panics and prints helpful info if the timeout is reached.
Trait Implementations§
Source§impl AsRef<Notifier> for RunningTask
impl AsRef<Notifier> for RunningTask
Source§impl Clone for RunningTask
impl Clone for RunningTask
Source§fn clone(&self) -> RunningTask
fn clone(&self) -> RunningTask
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§
impl Freeze for RunningTask
impl !RefUnwindSafe for RunningTask
impl Send for RunningTask
impl Sync for RunningTask
impl Unpin for RunningTask
impl !UnwindSafe for RunningTask
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