pub enum Error {
Show 16 variants
Reqwest(Error),
Io(Error),
Utf8(FromUtf8Error),
Metadata(Error),
InvalidScope(InvalidScopeError),
TokenError(Error),
PermissionEscalation {
escalated: Vec<Permission>,
},
StaticTokenOverride,
InvalidUrl {
message: String,
},
Multipart(Error),
MalformedResponse(String),
Batch(Arc<Error>),
OperationFailure {
status: u16,
message: String,
},
InvalidPartNumber(u32),
InvalidUploadId(InvalidUploadId),
MultipartComplete {
code: String,
message: String,
},
}Expand description
Errors that can happen within the objectstore-client
Variants§
Reqwest(Error)
Any error emitted from the underlying [reqwest] client.
Io(Error)
IO errors related to payload streaming.
Utf8(FromUtf8Error)
Errors related to UTF-8 dcoding
Metadata(Error)
Errors handling metadata, such as serializing it to/from HTTP headers.
InvalidScope(InvalidScopeError)
Error when scope validation fails.
TokenError(Error)
Error when creating auth tokens, such as invalid keys.
PermissionEscalation
Error when the permissions requested for a token exceed those granted to the
TokenGenerator.
Fields
escalated: Vec<Permission>The requested permissions that are not granted to the generator.
StaticTokenOverride
Error when per-token permission or expiry overrides are requested for a static (pre-signed) token, which cannot be re-scoped.
InvalidUrl
Error when URL manipulation fails.
Multipart(Error)
Error when parsing a multipart response.
MalformedResponse(String)
Error when the server returned a malformed response.
Batch(Arc<Error>)
Error that indicates that an entire batch request failed.
OperationFailure
Error that indicates failure of an individual operation in a batch request.
Fields
InvalidPartNumber(u32)
Error when part number validation fails (must be >= 1).
InvalidUploadId(InvalidUploadId)
Error when upload ID validation fails.
MultipartComplete
Error returned when attempting to complete a multipart upload.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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