pub struct Error(/* private fields */);Expand description
An error that can occur in the tick crate.
The most common type of error results from overflow, but other errors also exist:
- Parsing and formatting errors.
- Validation problems.
§Limited introspection
Other than implementing the std::error::Error and core::fmt::Debug traits, this error type
currently provides no introspection capabilities.
§Examples
use tick::Error;
use tick::fmt::Iso8601;
"invalid date".parse::<Iso8601>().unwrap_err();Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<SystemTimeError> for Error
impl From<SystemTimeError> for Error
Source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl ThreadAware for Error
impl ThreadAware for Error
Source§fn relocated(
self,
_source: MemoryAffinity,
_destination: PinnedAffinity,
) -> Self
fn relocated( self, _source: MemoryAffinity, _destination: PinnedAffinity, ) -> Self
Consume a value and return a value in the destination affinity. Read more
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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