#[non_exhaustive]pub enum StreamEnd {
Fin,
Reset {
code: u64,
},
Stopped {
code: u64,
},
Cancelled,
}Expand description
How a stream ended.
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.
Fin
The source finished the stream cleanly.
Reset
The source peer sent RESET_STREAM.
Stopped
The destination peer sent STOP_SENDING.
Cancelled
The session was cancelled while the stream was open.
Trait Implementations§
impl Copy for StreamEnd
impl Eq for StreamEnd
impl StructuralPartialEq for StreamEnd
Auto Trait Implementations§
impl Freeze for StreamEnd
impl RefUnwindSafe for StreamEnd
impl Send for StreamEnd
impl Sync for StreamEnd
impl Unpin for StreamEnd
impl UnsafeUnpin for StreamEnd
impl UnwindSafe for StreamEnd
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