pub struct InvocationHandle { /* private fields */ }Expand description
Handle to a background listener task started by RuntimeInvocation::on.
Dropping this handle aborts the listener task to prevent leaks. Inner handler tasks already dispatched before drop run to completion.
Implementations§
Source§impl InvocationHandle
impl InvocationHandle
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Returns true once the listener task has finished (completed or aborted).
Trait Implementations§
Source§impl Debug for InvocationHandle
impl Debug for InvocationHandle
Source§impl Drop for InvocationHandle
impl Drop for InvocationHandle
Auto Trait Implementations§
impl Freeze for InvocationHandle
impl RefUnwindSafe for InvocationHandle
impl Send for InvocationHandle
impl Sync for InvocationHandle
impl Unpin for InvocationHandle
impl UnsafeUnpin for InvocationHandle
impl UnwindSafe for InvocationHandle
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