#[non_exhaustive]pub enum RequestOutcome {
Completed,
StoppedByCallback,
Cancelled,
}Expand description
How a successfully waited non-blocking request ended.
This is a Rust-side classification because the native ABI does not expose its cancellation flag. Callback panic/error takes precedence, followed by an explicit callback stop, an observed terminal callback, and cancellation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
Native generation delivered its terminal callback.
StoppedByCallback
The Rust callback returned StreamControl::Stop.
ABI v10 treats this as an explicit stop even for the terminal event.
Cancelled
Rust requested cancellation before completion was observable.
Trait Implementations§
Source§impl Clone for RequestOutcome
impl Clone for RequestOutcome
Source§fn clone(&self) -> RequestOutcome
fn clone(&self) -> RequestOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestOutcome
Source§impl Debug for RequestOutcome
impl Debug for RequestOutcome
impl Eq for RequestOutcome
Source§impl PartialEq for RequestOutcome
impl PartialEq for RequestOutcome
impl StructuralPartialEq for RequestOutcome
Auto Trait Implementations§
impl Freeze for RequestOutcome
impl RefUnwindSafe for RequestOutcome
impl Send for RequestOutcome
impl Sync for RequestOutcome
impl Unpin for RequestOutcome
impl UnsafeUnpin for RequestOutcome
impl UnwindSafe for RequestOutcome
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