pub enum HttpsFSError {
IoError(Error),
FileNotFound {
path: String,
},
InvalidPath {
path: String,
},
Other {
message: String,
},
WithContext {
context: String,
cause: Box<HttpsFSError>,
},
NotSupported,
SerDe(Error),
Network(Error),
Auth(AuthError),
InvalidHeader(String),
}
Expand description
Internal error
Variants§
IoError(Error)
A generic IO error
FileNotFound
The file or directory at the given path could not be found
InvalidPath
The given path is invalid, e.g. because contains ‘.’ or ‘..’
Other
Generic error variant
WithContext
Generic error context, used for adding context to an error (like a path)
NotSupported
Functionality not supported by this filesystem
SerDe(Error)
Error during the serialization or the de-serialisation of command exchanged between the crate::HttpsFS and the crate::HttpsFSServer
Network(Error)
Any kind of network error (e.g. time out)
Auth(AuthError)
Authentication failed.
InvalidHeader(String)
Parsing of a http header failed.
Trait Implementations§
Source§impl Debug for HttpsFSError
impl Debug for HttpsFSError
Source§impl Display for HttpsFSError
impl Display for HttpsFSError
Source§impl Error for HttpsFSError
impl Error for HttpsFSError
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 HttpsFSError
impl From<Error> for HttpsFSError
Source§impl From<Error> for HttpsFSError
impl From<Error> for HttpsFSError
Source§impl From<Error> for HttpsFSError
impl From<Error> for HttpsFSError
Source§impl From<HttpsFSError> for VfsError
impl From<HttpsFSError> for VfsError
Source§fn from(error: HttpsFSError) -> Self
fn from(error: HttpsFSError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpsFSError
impl !RefUnwindSafe for HttpsFSError
impl Send for HttpsFSError
impl Sync for HttpsFSError
impl Unpin for HttpsFSError
impl !UnwindSafe for HttpsFSError
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