pub enum FailureType {
MissingField(String),
TypeMismatch(String),
ParseError,
}Expand description
Category of log file parsing failure.
Used to group similar failures together for easier diagnosis.
Variants§
MissingField(String)
Required field is missing from the log entry.
TypeMismatch(String)
Field has unexpected type or format.
ParseError
Generic parsing error not categorized further.
Trait Implementations§
Source§impl Clone for FailureType
impl Clone for FailureType
Source§fn clone(&self) -> FailureType
fn clone(&self) -> FailureType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailureType
impl Debug for FailureType
Source§impl Display for FailureType
impl Display for FailureType
Source§impl Hash for FailureType
impl Hash for FailureType
Source§impl PartialEq for FailureType
impl PartialEq for FailureType
impl Eq for FailureType
impl StructuralPartialEq for FailureType
Auto Trait Implementations§
impl Freeze for FailureType
impl RefUnwindSafe for FailureType
impl Send for FailureType
impl Sync for FailureType
impl Unpin for FailureType
impl UnwindSafe for FailureType
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