pub enum OperationResult {
Get(ObjectKey, Result<Option<GetResponse>, Error>),
Put(ObjectKey, Result<PutResponse, Error>),
Delete(ObjectKey, Result<DeleteResponse, Error>),
Head(ObjectKey, Result<HeadResponse, Error>),
Error(Error),
}Expand description
The result of an individual operation.
Variants§
Get(ObjectKey, Result<Option<GetResponse>, Error>)
The result of a get operation.
Returns Ok(None) if the object was not found.
Put(ObjectKey, Result<PutResponse, Error>)
The result of a put operation.
Delete(ObjectKey, Result<DeleteResponse, Error>)
The result of a delete operation.
Head(ObjectKey, Result<HeadResponse, Error>)
The result of a head (metadata-only) operation.
Returns Ok(None) if the object was not found.
Error(Error)
An error occurred while parsing or correlating a response part.
This makes it impossible to attribute the error to a specific operation. It can happen if the response contains malformed or missing headers, references unknown operation indices, or if a network error occurs while reading a response part.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationResult
impl !RefUnwindSafe for OperationResult
impl Send for OperationResult
impl !Sync for OperationResult
impl Unpin for OperationResult
impl UnsafeUnpin for OperationResult
impl !UnwindSafe for OperationResult
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
§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>
Converts
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>
Converts
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