pub enum StreamState {
NotStarted,
Active,
Complete,
Cancelled,
Failed,
}Expand description
Final lifecycle state recorded even when an asynchronous attempt is dropped.
Variants§
NotStarted
No attempt has borrowed the outcome slot yet.
Active
An attempt currently owns the slot.
Complete
Length and all hard limits were satisfied.
Cancelled
The caller or executor cancelled before completion.
Failed
A source, sink, or policy failure terminated the attempt.
Trait Implementations§
Source§impl Clone for StreamState
impl Clone for StreamState
Source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
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 StreamState
Source§impl Debug for StreamState
impl Debug for StreamState
impl Eq for StreamState
Source§impl Hash for StreamState
impl Hash for StreamState
Source§impl Ord for StreamState
impl Ord for StreamState
Source§fn cmp(&self, other: &StreamState) -> Ordering
fn cmp(&self, other: &StreamState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamState
impl PartialEq for StreamState
Source§impl PartialOrd for StreamState
impl PartialOrd for StreamState
impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl Freeze for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnsafeUnpin for StreamState
impl UnwindSafe for StreamState
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