Enum quic_rpc::client::RpcClientError
source · pub enum RpcClientError<C: ChannelTypes> {
Open(C::OpenBiError),
Send(C::SendError),
EarlyClose,
RecvError(C::RecvError),
DowncastError,
}
Expand description
Client error. All client DSL methods return a Result
with this error type.
Variants§
Open(C::OpenBiError)
Unable to open a stream to the server
Send(C::SendError)
Unable to send the request to the server
EarlyClose
Server closed the stream before sending a response
RecvError(C::RecvError)
Unable to receive the response from the server
DowncastError
Unexpected response from the server
Trait Implementations§
source§impl<C: Debug + ChannelTypes> Debug for RpcClientError<C>where
C::OpenBiError: Debug,
C::SendError: Debug,
C::RecvError: Debug,
impl<C: Debug + ChannelTypes> Debug for RpcClientError<C>where
C::OpenBiError: Debug,
C::SendError: Debug,
C::RecvError: Debug,
source§impl<C: ChannelTypes> Display for RpcClientError<C>
impl<C: ChannelTypes> Display for RpcClientError<C>
source§impl<C: ChannelTypes> Error for RpcClientError<C>
impl<C: ChannelTypes> Error for RpcClientError<C>
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()