pub enum StorageBackendError {
NotSupported {
backend_type: String,
context: String,
},
Generic {
backend_type: String,
inner: Error,
},
FileSystemVersionUnsupported {
backend_type: String,
inner: Error,
},
Unauthorised {
backend_type: String,
inner: Error,
},
InsufficientQuota {
backend_type: String,
requested_size: usize,
},
}
Variants§
Implementations§
source§impl StorageBackendError
impl StorageBackendError
pub fn backend_type(&self) -> &str
pub fn context(&self) -> String
pub fn with_context(self, ctx: impl ToString) -> Self
Trait Implementations§
source§impl Debug for StorageBackendError
impl Debug for StorageBackendError
source§impl Display for StorageBackendError
impl Display for StorageBackendError
source§impl Error for StorageBackendError
impl Error for StorageBackendError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for StorageBackendError
impl Send for StorageBackendError
impl Sync for StorageBackendError
impl Unpin for StorageBackendError
impl UnwindSafe for StorageBackendError
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