pub enum TimeDataError {
Io(Error),
Download(String),
Parse(String),
Integrity(String),
}Expand description
Error surface for runtime time-data operations.
Returned by update_runtime_time_data and refresh_runtime_time_data
(available with the runtime-data-fetch feature) when the runtime data
bundle cannot be loaded or refreshed.
Variants§
Io(Error)
An I/O error occurred while reading or writing the data bundle.
Download(String)
A network download failed.
Parse(String)
The data could not be parsed.
Integrity(String)
The data bundle failed an integrity check.
Trait Implementations§
Source§impl Debug for TimeDataError
impl Debug for TimeDataError
Source§impl Display for TimeDataError
impl Display for TimeDataError
Source§impl Error for TimeDataError
impl Error for TimeDataError
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<Error> for TimeDataError
impl From<Error> for TimeDataError
Source§impl From<TimeDataError> for TimeDataError
impl From<TimeDataError> for TimeDataError
Source§fn from(err: TimeDataError) -> Self
fn from(err: TimeDataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimeDataError
impl !RefUnwindSafe for TimeDataError
impl Send for TimeDataError
impl Sync for TimeDataError
impl Unpin for TimeDataError
impl UnsafeUnpin for TimeDataError
impl !UnwindSafe for TimeDataError
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.