#[non_exhaustive]pub enum PointerCheck {
Authoritative,
MatchRemaining,
}Expand description
How a PUSI packet’s pointer is judged against the unit 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.
Authoritative
The pointer is authoritative: the bytes before it are the tail of the unit in progress.
MatchRemaining
The pointer must equal the bytes the unit in progress still needs when its length is known; otherwise the partial unit is discarded.
Implementations§
Trait Implementations§
Source§impl Clone for PointerCheck
impl Clone for PointerCheck
impl Copy for PointerCheck
Source§impl Debug for PointerCheck
impl Debug for PointerCheck
Source§impl Display for PointerCheck
impl Display for PointerCheck
impl Eq for PointerCheck
Source§impl PartialEq for PointerCheck
impl PartialEq for PointerCheck
impl StructuralPartialEq for PointerCheck
Auto Trait Implementations§
impl Forget for PointerCheck
impl Freeze for PointerCheck
impl Move for PointerCheck
impl RefUnwindSafe for PointerCheck
impl Send for PointerCheck
impl Sync for PointerCheck
impl Unpin for PointerCheck
impl UnsafeUnpin for PointerCheck
impl UnwindSafe for PointerCheck
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