pub enum BucketError {
}Expand description
Unified error surface for storage, serving, and signing.
Variants§
NotFound
Object not found in storage or database.
Forbidden
Caller is not permitted to perform the requested action.
Unauthenticated
Request could not be authenticated.
InvalidSignature
Presigned URL has expired or is malformed.
Unsupported(String)
Configured backend cannot satisfy this operation (e.g. public_url
on a backend without a public bucket configured).
Config(String)
Missing or malformed configuration.
Io(Error)
Storage backend I/O error.
S3(String)
S3/MinIO-side error.
Url(String)
URL construction / parsing error.
InvalidInput(String)
Request payload is invalid (missing required fields, malformed input). Maps to HTTP 400.
Conflict(String)
Operation conflicts with current resource state (e.g. uploading to a readonly/archived bucket). Maps to HTTP 409.
PayloadTooLarge(String)
Payload exceeds the allowed size. Maps to HTTP 413.
UnsupportedMediaType(String)
MIME type is not in the bucket’s allow-list. Maps to HTTP 415.
Other(String)
Catch-all for errors outside the above categories.
Trait Implementations§
Source§impl Debug for BucketError
impl Debug for BucketError
Source§impl Display for BucketError
impl Display for BucketError
Source§impl Error for BucketError
impl Error for BucketError
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
use the Display impl or to_string()
Source§impl From<BucketError> for ServiceError
impl From<BucketError> for ServiceError
Source§fn from(err: BucketError) -> Self
fn from(err: BucketError) -> Self
Source§impl From<Error> for BucketError
impl From<Error> for BucketError
Source§impl From<ParseError> for BucketError
impl From<ParseError> for BucketError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Source§impl IntoResponse for BucketError
impl IntoResponse for BucketError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Auto Trait Implementations§
impl !RefUnwindSafe for BucketError
impl !UnwindSafe for BucketError
impl Freeze for BucketError
impl Send for BucketError
impl Sync for BucketError
impl Unpin for BucketError
impl UnsafeUnpin for BucketError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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