#[non_exhaustive]pub enum ResyncDecision {
Tag,
Need(usize),
Skip(usize),
}Expand description
What an incremental caller should do with the bytes at the front of its
buffer — see resync_decision.
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.
Tag
The front is the start of a consistent tag chain: parse it normally.
Need(usize)
More input is needed before the front can be decided. The buffer must hold at least this many bytes in total.
Skip(usize)
The front bytes are damaged: skip this many and decide again. The skip is one span, reported once by the caller.
Trait Implementations§
Source§impl Clone for ResyncDecision
impl Clone for ResyncDecision
impl Copy for ResyncDecision
Source§impl Debug for ResyncDecision
impl Debug for ResyncDecision
impl Eq for ResyncDecision
Source§impl PartialEq for ResyncDecision
impl PartialEq for ResyncDecision
impl StructuralPartialEq for ResyncDecision
Auto Trait Implementations§
impl Forget for ResyncDecision
impl Freeze for ResyncDecision
impl Move for ResyncDecision
impl RefUnwindSafe for ResyncDecision
impl Send for ResyncDecision
impl Sync for ResyncDecision
impl Unpin for ResyncDecision
impl UnsafeUnpin for ResyncDecision
impl UnwindSafe for ResyncDecision
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