#[non_exhaustive]pub enum AfterContinuation {
DiscardRest,
ParseRest,
}Expand description
Whether a continuation (non-PUSI) packet may start a unit: the bytes left after the unit in progress completes, or the whole payload when none is in progress.
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.
DiscardRest
No: only a PUSI packet’s pointer starts a unit; the rest is stuffing.
ParseRest
Yes: keep parsing units back to back, also from a continuation that arrives with no unit in progress.
Implementations§
Trait Implementations§
Source§impl Clone for AfterContinuation
impl Clone for AfterContinuation
impl Copy for AfterContinuation
Source§impl Debug for AfterContinuation
impl Debug for AfterContinuation
Source§impl Display for AfterContinuation
impl Display for AfterContinuation
impl Eq for AfterContinuation
Source§impl PartialEq for AfterContinuation
impl PartialEq for AfterContinuation
impl StructuralPartialEq for AfterContinuation
Auto Trait Implementations§
impl Forget for AfterContinuation
impl Freeze for AfterContinuation
impl Move for AfterContinuation
impl RefUnwindSafe for AfterContinuation
impl Send for AfterContinuation
impl Sync for AfterContinuation
impl Unpin for AfterContinuation
impl UnsafeUnpin for AfterContinuation
impl UnwindSafe for AfterContinuation
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