pub struct EpochError {
pub err: String,
}
Expand description
A generic epoch error.
Fields§
§err: String
Implementations§
Source§impl EpochError
impl EpochError
Sourcepub fn numeric_precision(err: &str) -> Self
pub fn numeric_precision(err: &str) -> Self
Used when an overflow or underflow occurs during time base conversions.
Trait Implementations§
Source§impl Debug for EpochError
impl Debug for EpochError
Source§impl Display for EpochError
impl Display for EpochError
Source§impl Error for EpochError
impl Error for EpochError
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 From<ComponentRange> for EpochError
Convert errors from the time crate to EpochErrors.
impl From<ComponentRange> for EpochError
Convert errors from the time crate to EpochErrors.
Source§fn from(err: ComponentRange) -> Self
fn from(err: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for EpochError
Convert errors during integer conversions to EpochErrors.
impl From<TryFromIntError> for EpochError
Convert errors during integer conversions to EpochErrors.
Source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EpochError
impl RefUnwindSafe for EpochError
impl Send for EpochError
impl Sync for EpochError
impl Unpin for EpochError
impl UnwindSafe for EpochError
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