pub enum Chunk {
Continued {
entries: Vec<ChunkEntry>,
position: Position,
},
Truncated,
Replaced,
}Expand description
What read_chunk found.
Variants§
Continued
The log continues from the given position.
Fields
§
entries: Vec<ChunkEntry>New entries, including the metadata line. There are none only when the end of the log was reached.
Truncated
The log is now shorter than the given position.
Replaced
The log no longer has the content that was read before.
Trait Implementations§
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Forget for Chunk
impl Freeze for Chunk
impl Move for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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