Enum microservices::rpc::ServerError
source · pub enum ServerError<Ext>where
Ext: FailureCodeExt,{
UnexpectedServerResponse,
ServerFailure(Failure<Ext>),
Presentation(Error),
Transport(Error),
UnknownEndpoint(String),
}
Expand description
Errors happening with RPC APIs on the server side and returned to the client
Variants§
UnexpectedServerResponse
unexpected server response
ServerFailure(Failure<Ext>)
Server failure
Presentation(Error)
Message serialization or structure error.
Transport(Error)
Transport-level protocol error.
UnknownEndpoint(String)
provided RPC endpoint {0} is unknown
Trait Implementations§
source§impl<Ext> Clone for ServerError<Ext>where
Ext: FailureCodeExt + Clone,
impl<Ext> Clone for ServerError<Ext>where
Ext: FailureCodeExt + Clone,
source§fn clone(&self) -> ServerError<Ext>
fn clone(&self) -> ServerError<Ext>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Ext> Debug for ServerError<Ext>where
Ext: FailureCodeExt + Debug,
impl<Ext> Debug for ServerError<Ext>where
Ext: FailureCodeExt + Debug,
source§impl<Ext> Display for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> Display for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> Error for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> Error for ServerError<Ext>where
Ext: FailureCodeExt,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Error> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<Failure<Ext>> for ServerError<Ext>where
Ext: FailureCodeExt,
impl<Ext> From<Failure<Ext>> for ServerError<Ext>where
Ext: FailureCodeExt,
source§impl<Ext> From<ServerError<Ext>> for Stringwhere
Ext: FailureCodeExt,
impl<Ext> From<ServerError<Ext>> for Stringwhere
Ext: FailureCodeExt,
source§fn from(err: ServerError<Ext>) -> Self
fn from(err: ServerError<Ext>) -> Self
Converts to this type from the input type.