pub enum StoreError {
Io(Error),
Json(Error),
InvalidPath(PathBuf),
InvalidUploadId,
NoSuchUpload,
InvalidPart,
EntityTooSmall,
EntityTooLarge,
Checksum(S3Error),
Processor(S3Error),
}Expand description
Errors returned by filesystem object and multipart stores.
Variants§
Io(Error)
Filesystem I/O failed.
Json(Error)
Persisted JSON metadata could not be encoded or decoded.
InvalidPath(PathBuf)
A persisted file path did not match the expected storage layout.
InvalidUploadId
An upload ID was not a canonical UUID path segment.
NoSuchUpload
The requested multipart upload does not exist or is no longer open.
InvalidPart
The requested multipart part is missing, duplicated, or inconsistent.
EntityTooSmall
A non-final multipart part is below the configured minimum size.
EntityTooLarge
An object, part, or completed multipart object exceeds configured limits.
Checksum(S3Error)
Final object checksum validation failed.
Processor(S3Error)
Upload middleware rejected or failed a staged object.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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 StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<StoreError> for UploadProcessorError
impl From<StoreError> for UploadProcessorError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for AppInitError
impl From<StoreError> for AppInitError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StoreError
impl !UnwindSafe for StoreError
impl Freeze for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
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