#[non_exhaustive]pub enum Reason {
BadHeader,
UnknownKind,
MissingField {
field: &'static str,
},
BadNumber {
field: &'static str,
},
UnknownHint,
UnknownConfigKey,
InvalidConfig(Error),
NoConfig,
}Expand description
Why a log row or log failed to parse or replay.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadHeader
The first line is not Input::CSV_HEADER.
UnknownKind
The row kind is not one of the log’s kinds.
MissingField
A required column is empty or absent.
BadNumber
A column is not a number of the required type.
UnknownHint
The hint token names no Hint.
UnknownConfigKey
The config token names no ConfigKey.
InvalidConfig(Error)
The recorded configuration fails ControllerConfig::validate.
NoConfig
The log has no config rows; use InputLog::parse_with_config.
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Forget for Reason
impl Freeze for Reason
impl Move for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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