pub enum HybridStorageError {
NetworkError(Box<Error>),
NotFound(String),
CorruptedFile(String),
CorruptedDownload(String),
IoError(Error),
HashMismatch(String),
UploadFailed(String),
ServerVersionMismatch(String),
OnlineError(OnlineStorageError),
}Expand description
Error types for hybrid storage operations
Variants§
NetworkError(Box<Error>)
NotFound(String)
CorruptedFile(String)
CorruptedDownload(String)
IoError(Error)
HashMismatch(String)
UploadFailed(String)
ServerVersionMismatch(String)
The server’s backend does not implement an API the client needs: its
software predates the feature being used (typical signature: the
legacy catch-all that answers every JSON action POST as “File size
exceeds server limits.”, HTTP 413, or “Unknown action: …”), or the
API URL does not point at the Supreme backend at all (HTML/empty
404). Detected for any API action request, not a specific feature.
Carries the underlying server response for support/debugging; the
Display text is the end-user-facing message.
OnlineError(OnlineStorageError)
Trait Implementations§
Source§impl Debug for HybridStorageError
impl Debug for HybridStorageError
Source§impl Display for HybridStorageError
impl Display for HybridStorageError
Source§impl Error for HybridStorageError
impl Error for HybridStorageError
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<Box<Error>> for HybridStorageError
impl From<Box<Error>> for HybridStorageError
Source§impl From<Error> for HybridStorageError
impl From<Error> for HybridStorageError
Source§impl From<Error> for HybridStorageError
Available on crate feature online only.
impl From<Error> for HybridStorageError
Available on crate feature
online only.Source§impl From<OnlineStorageError> for HybridStorageError
impl From<OnlineStorageError> for HybridStorageError
Source§fn from(source: OnlineStorageError) -> Self
fn from(source: OnlineStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HybridStorageError
impl !RefUnwindSafe for HybridStorageError
impl Send for HybridStorageError
impl Sync for HybridStorageError
impl Unpin for HybridStorageError
impl UnsafeUnpin for HybridStorageError
impl !UnwindSafe for HybridStorageError
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