pub enum ObjectStoreError {
Local(LocalObjectStoreError),
S3(S3ObjectStoreError),
Prefix(ObjectPrefixError),
MissingS3Config,
StoredLengthMismatch,
MigrationSourceHashMismatch {
key: String,
expected_hash: String,
observed_hash: String,
},
}Expand description
Object-storage subsystem failure.
Variants§
Local(LocalObjectStoreError)
Local storage IO failed.
S3(S3ObjectStoreError)
S3-compatible object-storage adapter access failed.
Prefix(ObjectPrefixError)
Object inventory prefix validation failed.
MissingS3Config
S3-compatible object storage was selected without concrete configuration.
StoredLengthMismatch
Stored object metadata disagreed with the expected transfer length.
MigrationSourceHashMismatch
Storage migration found a content-addressed source object under the wrong key.
Trait Implementations§
Source§impl Debug for ObjectStoreError
impl Debug for ObjectStoreError
Source§impl Display for ObjectStoreError
impl Display for ObjectStoreError
Source§impl Error for ObjectStoreError
impl Error for ObjectStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LocalObjectStoreError> for ObjectStoreError
impl From<LocalObjectStoreError> for ObjectStoreError
Source§fn from(source: LocalObjectStoreError) -> Self
fn from(source: LocalObjectStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectPrefixError> for ObjectStoreError
impl From<ObjectPrefixError> for ObjectStoreError
Source§fn from(source: ObjectPrefixError) -> Self
fn from(source: ObjectPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectStoreError> for ServerError
impl From<ObjectStoreError> for ServerError
Source§fn from(source: ObjectStoreError) -> Self
fn from(source: ObjectStoreError) -> Self
Converts to this type from the input type.
Source§impl From<S3ObjectStoreError> for ObjectStoreError
impl From<S3ObjectStoreError> for ObjectStoreError
Source§fn from(source: S3ObjectStoreError) -> Self
fn from(source: S3ObjectStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreError
impl !UnwindSafe for ObjectStoreError
impl Freeze for ObjectStoreError
impl Send for ObjectStoreError
impl Sync for ObjectStoreError
impl Unpin for ObjectStoreError
impl UnsafeUnpin for ObjectStoreError
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
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request. Read more
Source§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Append a header into the request. Read more
Source§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request, if the header is not already present. Read more
Source§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response. Read more
Source§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Append a header into the response. Read more
Source§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response, if the header is not already present. Read more
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.