pub enum Error {
Show 14 variants
Reqwest(Error),
Io(Error),
Utf8(FromUtf8Error),
Metadata(Error),
InvalidScope(InvalidScopeError),
TokenError(Error),
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.
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
Source§impl From<InvalidScopeError> for Error
impl From<InvalidScopeError> for Error
Source§fn from(source: InvalidScopeError) -> Self
fn from(source: InvalidScopeError) -> Self
Source§impl From<InvalidUploadId> for Error
impl From<InvalidUploadId> for Error
Source§fn from(source: InvalidUploadId) -> Self
fn from(source: InvalidUploadId) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe 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<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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.