#[non_exhaustive]pub enum JournalEventKindError {
Empty,
TooLong {
maximum: usize,
actual: usize,
},
InvalidStart,
InvalidByte {
index: usize,
},
NonCanonicalSeparator {
index: usize,
},
}Expand description
Invalid durable event kind.
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.
Empty
The event kind was empty.
TooLong
The event kind exceeded its hard byte bound.
InvalidStart
The first byte was not a lowercase ASCII letter.
InvalidByte
A byte was outside lowercase ASCII letters, digits, and hyphen.
NonCanonicalSeparator
A hyphen was repeated or trailing.
Trait Implementations§
Source§impl Clone for JournalEventKindError
impl Clone for JournalEventKindError
Source§impl Debug for JournalEventKindError
impl Debug for JournalEventKindError
Source§impl Display for JournalEventKindError
impl Display for JournalEventKindError
impl Eq for JournalEventKindError
Source§impl Error for JournalEventKindError
impl Error for JournalEventKindError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for JournalEventKindError
impl PartialEq for JournalEventKindError
impl StructuralPartialEq for JournalEventKindError
Auto Trait Implementations§
impl Forget for JournalEventKindError
impl Freeze for JournalEventKindError
impl Move for JournalEventKindError
impl RefUnwindSafe for JournalEventKindError
impl Send for JournalEventKindError
impl Sync for JournalEventKindError
impl Unpin for JournalEventKindError
impl UnsafeUnpin for JournalEventKindError
impl UnwindSafe for JournalEventKindError
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