pub enum ErrorKind {
Show 18 variants
InvalidMetadata,
InvalidUploadId,
ClientStream,
RangeNotSatisfiable {
total: u64,
},
UploadOffsetMismatch {
offset: u64,
},
UploadSessionGone,
UnknownUploadSession,
ChunkExceedsUploadLength {
offset: u64,
content_length: u64,
upload_length: u64,
},
AtCapacity,
Unsupported,
BackendFailure,
BackendRateLimited,
BackendTimeout,
BackendUnavailable,
Panic,
UnexpectedTombstone,
CorruptData,
Internal,
}Expand description
The client-visible semantic classification of a service error.
Variants§
InvalidMetadata
Object metadata supplied by a client is invalid.
InvalidUploadId
A multipart upload identifier is invalid.
ClientStream
A client-provided request stream failed.
RangeNotSatisfiable
A requested byte range cannot be resolved against the object size.
UploadOffsetMismatch
A resumable chunk starts at a different offset than the backend currently holds.
UploadSessionGone
A resumable upload session expired or was canceled.
UnknownUploadSession
The backend does not recognize a resumable upload session.
ChunkExceedsUploadLength
A resumable chunk would exceed the total upload length.
Fields
AtCapacity
The service cannot accept more work.
Unsupported
The requested operation is unsupported.
BackendFailure
A storage backend operation failed.
BackendRateLimited
A storage backend rejected the operation because it is rate limited.
BackendTimeout
A storage backend operation timed out.
A storage backend is temporarily unavailable.
Panic
A service task panicked.
UnexpectedTombstone
A redirect tombstone was encountered by a read that does not support tombstones.
CorruptData
Persisted or remote data is corrupt.
Internal
An unexpected internal service failure occurred.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].