pub enum CommonError {
Show 14 variants
CacheLock,
Serialization(&'static str),
Deserialization(&'static str),
Io(Error),
UnsupportedFileType(&'static str),
DataNotFound,
UnableToFreshData,
StaleInternalNone,
Timeout,
FilenameError,
InvalidFilenameEncoding,
MissingTimestampSeparator,
MissingFileExtension,
TimestampParseError,
}Variants§
CacheLock
Serialization(&'static str)
Deserialization(&'static str)
Io(Error)
UnsupportedFileType(&'static str)
DataNotFound
UnableToFreshData
StaleInternalNone
Timeout
FilenameError
InvalidFilenameEncoding
MissingTimestampSeparator
MissingFileExtension
TimestampParseError
Implementations§
Source§impl CommonError
impl CommonError
Sourcepub fn cache_lock() -> Self
pub fn cache_lock() -> Self
Helper for cache lock errors.
Sourcepub fn serialization(detail: &'static str) -> Self
pub fn serialization(detail: &'static str) -> Self
Helper for serialization errors.
Sourcepub fn deserialization(detail: &'static str) -> Self
pub fn deserialization(detail: &'static str) -> Self
Helper for deserialization errors.
Sourcepub fn unsupported_file_type(detail: &'static str) -> Self
pub fn unsupported_file_type(detail: &'static str) -> Self
Helper for unsupported file type errors.
Sourcepub fn data_not_found() -> Self
pub fn data_not_found() -> Self
Helper for data not found errors.
Sourcepub fn unable_to_fresh_data() -> Self
pub fn unable_to_fresh_data() -> Self
Helper for unable to refresh data errors.
Sourcepub fn stale_internal_none() -> Self
pub fn stale_internal_none() -> Self
Helper for stale internal none errors.
Sourcepub fn filename_error() -> Self
pub fn filename_error() -> Self
Helper for filename errors.
Sourcepub fn invalid_filename_encoding() -> Self
pub fn invalid_filename_encoding() -> Self
Helper for invalid filename encoding errors.
Sourcepub fn missing_timestamp_separator() -> Self
pub fn missing_timestamp_separator() -> Self
Helper for missing timestamp separator errors.
Sourcepub fn missing_file_extension() -> Self
pub fn missing_file_extension() -> Self
Helper for missing file extension errors.
Sourcepub fn timestamp_parse_error() -> Self
pub fn timestamp_parse_error() -> Self
Helper for timestamp parse errors.
Trait Implementations§
Source§impl Debug for CommonError
impl Debug for CommonError
Source§impl Display for CommonError
impl Display for CommonError
Source§impl Error for CommonError
impl Error for CommonError
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()
Auto Trait Implementations§
impl Freeze for CommonError
impl !RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl !UnwindSafe for CommonError
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