Struct async_backtrace::Task
source · pub struct Task(/* private fields */);
Expand description
A top-level framed future.
Implementations§
source§impl Task
impl Task
sourcepub fn pretty_tree(&self, block_until_idle: bool) -> String
pub fn pretty_tree(&self, block_until_idle: bool) -> String
Pretty-prints this task as a tree.
If block_until_idle
is true
, this routine will block until the task
is no longer being polled. In this case, the caller should not hold any
locks which might be held by the task, otherwise deadlock may occur.
If block_until_idle
is false
, and the task is being polled, the
output will not include the sub-frames, instead simply note that the
task is being polled.
Trait Implementations§
source§impl PartialEq for Task
impl PartialEq for Task
impl Eq for Task
impl Send for Task
impl StructuralPartialEq for Task
impl Sync for Task
Auto 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more