#[non_exhaustive]pub enum FsClientError {
EmptyFile,
Io(IoError),
IsStale(IsStaleError),
}Expand description
A list of errors which may be produced by [CachedClient::fetch].
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.
EmptyFile
Returned if the fetched file was empty.
Io(IoError)
Returned in case of an std::io::Error.
IsStale(IsStaleError)
Returned in case it wasn’t possible to check whether the cache file is stale or not.
Trait Implementations§
Source§impl Debug for FsClientError
impl Debug for FsClientError
Source§impl Display for FsClientError
impl Display for FsClientError
Source§impl Error for FsClientError
impl Error for FsClientError
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<IsStaleError> for FsClientError
impl From<IsStaleError> for FsClientError
Source§fn from(source: IsStaleError) -> Self
fn from(source: IsStaleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FsClientError
impl !RefUnwindSafe for FsClientError
impl Send for FsClientError
impl Sync for FsClientError
impl Unpin for FsClientError
impl UnsafeUnpin for FsClientError
impl !UnwindSafe for FsClientError
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