pub enum ServiceError {
Io(Error),
Serde {
context: String,
cause: Error,
},
Reqwest {
context: String,
cause: Error,
},
Metadata(Error),
GcpAuth(Error),
Generic {
context: String,
cause: Option<Box<dyn Error + Send + Sync>>,
},
}Expand description
Error type for service operations.
Variants§
Io(Error)
IO errors related to payload streaming or file operations.
Serde
Errors related to de/serialization.
Fields
Reqwest
All errors stemming from the reqwest client, used in multiple backends to send requests to e.g. GCP APIs. These can be network errors encountered when sending the requests, but can also indicate errors returned by the API itself.
Fields
§
cause: ErrorThe underlying reqwest error.
Metadata(Error)
Errors related to de/serialization and parsing of object metadata.
GcpAuth(Error)
Errors encountered when attempting to authenticate with GCP.
Generic
Any other error stemming from one of the storage backends, which might be specific to that backend or to a certain operation.
Trait Implementations§
Source§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
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<Error> for ServiceError
impl From<Error> for ServiceError
Source§impl From<Error> for ServiceError
impl From<Error> for ServiceError
Auto Trait Implementations§
impl Freeze for ServiceError
impl !RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl !UnwindSafe for ServiceError
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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].§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.