#[non_exhaustive]pub enum RpcError {
Open(Error),
Transport(Error),
Send(Error),
Receive(Error),
InvalidResponse(Error),
Response(ErrResp),
}
Expand description
Errors arising from tunneling protocol RPC calls.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open(Error)
Failed to open a new stream to start the RPC call.
Transport(Error)
Some non-Open transport error occurred
Send(Error)
Failed to send the request over the stream.
Receive(Error)
Failed to read the RPC response from the stream.
InvalidResponse(Error)
The RPC response was invalid.
Response(ErrResp)
There was an error in the RPC response.
Trait Implementations§
source§impl Error for RpcError
impl Error for RpcError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl !UnwindSafe for RpcError
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