Enum End
pub enum End {
Clean,
Torn,
Damaged {
at: usize,
later_seq: u64,
},
Full,
}Expand description
The end of the chain in a segment.
Variants§
Clean
Zeros follow the last batch.
Torn
Bytes that are not the next batch follow: a write in flight that was never acknowledged, or stale bytes of an earlier life.
Damaged
A later batch says the batch at at had been acknowledged.
Full
The segment is full: the chain continues in the next segment.
Trait Implementations§
impl Copy for End
impl Eq for End
impl StructuralPartialEq for End
Auto Trait Implementations§
impl Freeze for End
impl RefUnwindSafe for End
impl Send for End
impl Sync for End
impl Unpin for End
impl UnsafeUnpin for End
impl UnwindSafe for End
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