pub struct Handler { /* private fields */ }
Expand description
A handler is used to manage contexts and to cancel them.
Implementations§
Source§impl Handler
impl Handler
Sourcepub async fn done(&self)
pub async fn done(&self)
Waits for the handler to be done (waiting for all contexts to be done).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnwindSafe for Handler
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