pub enum ServiceErrors {
NotFound(Status),
ServiceUnavailable(Status),
ServiceInternal(Status),
}
Expand description
Error types related to a particular service (not the API itself).
Variants§
Trait Implementations§
Source§impl Debug for ServiceErrors
impl Debug for ServiceErrors
Source§impl Display for ServiceErrors
impl Display for ServiceErrors
Source§impl Error for ServiceErrors
impl Error for ServiceErrors
1.30.0 · 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 ServiceErrors
This happens when a client is unable to connect to a service.
impl From<Error> for ServiceErrors
This happens when a client is unable to connect to a service.
Source§impl From<Status> for ServiceErrors
impl From<Status> for ServiceErrors
Source§impl IntoResponse for ServiceErrors
Implement IntoResponse for HttpResponse so that we can return it from an axum handler.
This is primarily used for outside services that the API proxies requests to, whereas the API itself
returns HttpResponses directly.
impl IntoResponse for ServiceErrors
Implement IntoResponse for HttpResponse so that we can return it from an axum handler. This is primarily used for outside services that the API proxies requests to, whereas the API itself returns HttpResponses directly.
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !Freeze for ServiceErrors
impl !RefUnwindSafe for ServiceErrors
impl Send for ServiceErrors
impl Sync for ServiceErrors
impl Unpin for ServiceErrors
impl !UnwindSafe for ServiceErrors
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request