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
sourceimpl<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,
sourceimpl<C: ChannelTypes> Display for RpcClientError<C>
impl<C: ChannelTypes> Display for RpcClientError<C>
sourceimpl<C: ChannelTypes> Error for RpcClientError<C>
impl<C: ChannelTypes> Error for RpcClientError<C>
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<C> RefUnwindSafe for RpcClientError<C>where
<C as ChannelTypes>::OpenBiError: RefUnwindSafe,
<C as ChannelTypes>::RecvError: RefUnwindSafe,
<C as ChannelTypes>::SendError: RefUnwindSafe,
impl<C> Send for RpcClientError<C>
impl<C> Sync for RpcClientError<C>
impl<C> Unpin for RpcClientError<C>
impl<C> UnwindSafe for RpcClientError<C>where
<C as ChannelTypes>::OpenBiError: UnwindSafe,
<C as ChannelTypes>::RecvError: UnwindSafe,
<C as ChannelTypes>::SendError: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more