#[non_exhaustive]pub enum TimeError {
Unspecified,
ConversionFailure,
Overflow,
DivByZero,
NegDuration,
Clock(Error),
}
Expand description
Crate errors
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.
Unspecified
Exact cause of failure is unknown
ConversionFailure
Attempted type conversion failed
Overflow
Result is outside of those valid for this type
DivByZero
Attempted to divide by zero
NegDuration
Resulting Duration
is negative (not allowed)
Clock(Error)
Clock
-implementation-specific error
Trait Implementations§
Source§impl From<ConversionError> for TimeError
impl From<ConversionError> for TimeError
Source§fn from(error: ConversionError) -> Self
fn from(error: ConversionError) -> Self
Converts to this type from the input type.
impl Eq for TimeError
impl StructuralPartialEq for TimeError
Auto Trait Implementations§
impl Freeze for TimeError
impl RefUnwindSafe for TimeError
impl Send for TimeError
impl Sync for TimeError
impl Unpin for TimeError
impl UnwindSafe for TimeError
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