#[non_exhaustive]pub enum Unlocked {
KeepWindow,
DropUnalignable,
}Expand description
What a TsResync does with bytes received before it has locked.
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.
KeepWindow
Keep up to confirmations of the largest stride’s packets of
not-yet-locked bytes in case a lock appears among them, and drop only
the excess before them.
DropUnalignable
Drop at once every byte that can no longer start a lock; keep only the bytes from the first sync byte that more input could still confirm.
Implementations§
Trait Implementations§
impl Copy for Unlocked
impl Eq for Unlocked
impl StructuralPartialEq for Unlocked
Auto Trait Implementations§
impl Forget for Unlocked
impl Freeze for Unlocked
impl Move for Unlocked
impl RefUnwindSafe for Unlocked
impl Send for Unlocked
impl Sync for Unlocked
impl Unpin for Unlocked
impl UnsafeUnpin for Unlocked
impl UnwindSafe for Unlocked
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