pub enum ErrorKind {
OutOfRange(&'static str),
Parse(&'static str),
Overflow,
InvalidOffset,
BufferOverflow,
Invalid(&'static str),
}Expand description
Coarse classification of a Error.
Variants§
OutOfRange(&'static str)
A component (month, day, hour, …) fell outside its allowed range.
Parse(&'static str)
Text could not be parsed.
Overflow
Signed arithmetic overflowed.
InvalidOffset
A timezone offset outside ±24 hours was requested.
BufferOverflow
The caller-supplied output buffer was too small to hold the text.
Invalid(&'static str)
Generic invalid input.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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