pub enum LogPiece {
Text {
octets: Vec<u8>,
board_ms: u32,
after_gap: bool,
},
Lost(u64),
Restarted,
Boot(LogHeader),
Dropped(u32),
}Expand description
What a log read says, in order.
Variants§
Text
The log’s next octets, read in a response the entity built
board_ms milliseconds after it booted. After a gap, or at a start
partway through the log, they begin partway through a line.
Lost(u64)
Octets the ring let go before they could be read.
Restarted
The entity booted again: its log starts over.
Boot(LogHeader)
The header of the boot read first, and of each boot after a restart: its ID, why it began, and the entity’s milliseconds since boot then.
Dropped(u32)
Lines the entity dropped whole since the last read.
Trait Implementations§
impl Eq for LogPiece
impl StructuralPartialEq for LogPiece
Auto Trait Implementations§
impl Forget for LogPiece
impl Freeze for LogPiece
impl Move for LogPiece
impl RefUnwindSafe for LogPiece
impl Send for LogPiece
impl Sync for LogPiece
impl Unpin for LogPiece
impl UnsafeUnpin for LogPiece
impl UnwindSafe for LogPiece
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