pub(crate) enum Terminal {
Truncate {
prefix: Bytes,
code: u64,
},
Reset {
code: u64,
},
}Expand description
A positional stream ending.
Enqueued behind the current queue contents, so everything decided before it is written first. Nothing may be queued behind one.
Variants§
Truncate
Write prefix, then RESET_STREAM with code —
crate::action::Action::Truncate.
The peer observes at most prefix.len() further bytes and may
observe none: quinn clears the receive assembler when the reset is
processed, and reset() discards the local send buffer too.
Fields
§
prefix: BytesThe prefix of the unit to write before resetting.
Reset
RESET_STREAM with code and nothing further —
crate::action::Action::ResetStream.
Implementations§
Trait Implementations§
impl Eq for Terminal
impl StructuralPartialEq for Terminal
Auto Trait Implementations§
impl !Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
impl UnwindSafe for Terminal
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