pub enum LogDiagnostic {
MissingBodyLength,
MalformedBodyLength,
BodyLengthMismatch,
MissingMsgType,
MalformedChecksum,
ChecksumMismatch,
Truncated,
PrefixTruncated,
}Expand description
A problem a LogReader found with a record.
Variants§
MissingBodyLength
The second field is not 9=.
MalformedBodyLength
BodyLength is not a number.
BodyLengthMismatch
BodyLength does not point at the CheckSum field.
MissingMsgType
The field after BodyLength, or after BeginString without one, is not
35=.
MalformedChecksum
CheckSum is not three digits.
ChecksumMismatch
The calculated checksum does not match the value of CheckSum.
Truncated
The message ends before its CheckSum field.
PrefixTruncated
The prefix is cut to the 1 MiB nearest the message.
Trait Implementations§
Source§impl Clone for LogDiagnostic
impl Clone for LogDiagnostic
impl Copy for LogDiagnostic
Source§impl Debug for LogDiagnostic
impl Debug for LogDiagnostic
impl Eq for LogDiagnostic
Source§impl PartialEq for LogDiagnostic
impl PartialEq for LogDiagnostic
impl StructuralPartialEq for LogDiagnostic
Auto Trait Implementations§
impl Forget for LogDiagnostic
impl Freeze for LogDiagnostic
impl Move for LogDiagnostic
impl RefUnwindSafe for LogDiagnostic
impl Send for LogDiagnostic
impl Sync for LogDiagnostic
impl Unpin for LogDiagnostic
impl UnsafeUnpin for LogDiagnostic
impl UnwindSafe for LogDiagnostic
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