pub enum S3StorageError {
Show 15 variants
MissingRegion,
CreateBucket(SdkError<CreateBucketError>),
DeleteBucket(SdkError<DeleteBucketError>),
HeadBucket(SdkError<HeadBucketError>),
PutObject(SdkError<PutObjectError>),
UnixTimeCalculation,
PutObjectPresigned(SdkError<PutObjectError>),
PresignedConfig,
GetObjectPresigned(SdkError<GetObjectError>),
QueueConfig,
PutBucketNotification(SdkError<PutBucketNotificationConfigurationError>),
CreateCorsConfig,
PutBucketCors(SdkError<PutBucketCorsError>),
DeleteObject(SdkError<DeleteObjectError>),
GetObject(SdkError<GetObjectError>),
}Expand description
User facing storage errors
Should not contain the actual error types, these will be logged early, only includes the actual error message
Variants§
MissingRegion
AWS region missing
CreateBucket(SdkError<CreateBucketError>)
Failed to create a bucket
DeleteBucket(SdkError<DeleteBucketError>)
Failed to delete a bucket
HeadBucket(SdkError<HeadBucketError>)
Failed to head a bucket
PutObject(SdkError<PutObjectError>)
Failed to store a file in a bucket
UnixTimeCalculation
Failed to calculate future unix timestamps
PutObjectPresigned(SdkError<PutObjectError>)
Failed to create presigned upload
PresignedConfig
Failed to create presigned config
GetObjectPresigned(SdkError<GetObjectError>)
Failed to create presigned download
QueueConfig
Failed to create the config for the notification queue
PutBucketNotification(SdkError<PutBucketNotificationConfigurationError>)
Failed to setup a notification queue on the bucket
This error is allowed to expose the inner error details as it is only used by the management layer and these errors are helpful for management
CreateCorsConfig
Failed to make the cors config or rules
PutBucketCors(SdkError<PutBucketCorsError>)
Failed to put the bucket cors config
This error is allowed to expose the inner error details as it is only used by the management layer and these errors are helpful for management
DeleteObject(SdkError<DeleteObjectError>)
Failed to delete a file object
GetObject(SdkError<GetObjectError>)
Failed to get the file storage object
Trait Implementations§
Source§impl Debug for S3StorageError
impl Debug for S3StorageError
Source§impl Display for S3StorageError
impl Display for S3StorageError
Source§impl Error for S3StorageError
impl Error for S3StorageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<S3StorageError> for StorageLayerError
impl From<S3StorageError> for StorageLayerError
Source§fn from(value: S3StorageError) -> Self
fn from(value: S3StorageError) -> Self
Auto Trait Implementations§
impl !Freeze for S3StorageError
impl !RefUnwindSafe for S3StorageError
impl Send for S3StorageError
impl Sync for S3StorageError
impl Unpin for S3StorageError
impl !UnwindSafe for S3StorageError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more