pub struct CompletionHandle { /* private fields */ }Expand description
Handle for awaiting the completion of an accepted input.
Implementations§
Source§impl CompletionHandle
impl CompletionHandle
Sourcepub async fn wait(self) -> CompletionOutcome
pub async fn wait(self) -> CompletionOutcome
Wait for the input to reach a terminal state.
Sourcepub fn already_resolved(outcome: CompletionOutcome) -> Self
pub fn already_resolved(outcome: CompletionOutcome) -> Self
Create a handle from a pre-resolved outcome.
Used when the input is already terminal (e.g. dedup of completed input) and no waiter registration is needed.
Auto Trait Implementations§
impl Freeze for CompletionHandle
impl !RefUnwindSafe for CompletionHandle
impl Send for CompletionHandle
impl Sync for CompletionHandle
impl Unpin for CompletionHandle
impl UnsafeUnpin for CompletionHandle
impl !UnwindSafe for CompletionHandle
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