pub struct Handler { /* private fields */ }
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)
Sourcepub async fn wait(&self)
pub async fn wait(&self)
Waits for the handler to be done (waiting for all contexts to be done) Returns once all contexts are done, even if the handler is not done and contexts can be created after this call.
pub fn is_done(&self) -> bool
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