pub enum RequestResponseError {
Rejected(RejectReason),
Canceled,
Timeout,
NotConnected,
TooLargePayload,
UnsupportedProtocol,
}
Expand description
Request-response error.
Variants§
Rejected(RejectReason)
Request was rejected.
Canceled
Request was canceled by the local node.
Timeout
Request timed out.
NotConnected
The peer is not connected and the dialing option was DialOptions::Reject
.
TooLargePayload
Too large payload.
UnsupportedProtocol
Protocol not supported.
Trait Implementations§
source§impl Debug for RequestResponseError
impl Debug for RequestResponseError
source§impl PartialEq for RequestResponseError
impl PartialEq for RequestResponseError
source§fn eq(&self, other: &RequestResponseError) -> bool
fn eq(&self, other: &RequestResponseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestResponseError
Auto Trait Implementations§
impl !Freeze for RequestResponseError
impl !RefUnwindSafe for RequestResponseError
impl Send for RequestResponseError
impl Sync for RequestResponseError
impl Unpin for RequestResponseError
impl !UnwindSafe for RequestResponseError
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