pub enum OutboundRequestError {
ConnectionClosed,
DialFailure,
NoReceiver,
SendError,
SenderFutureDropped,
SerializationError,
Timeout,
UnsupportedProtocols,
NoResponse,
Other(String),
}Variants§
ConnectionClosed
The connection closed before a response was received.
It is not known whether the request may have been received (and processed) by the remote peer.
DialFailure
The request could not be sent because a dialing attempt failed.
NoReceiver
No receiver was found for this request and no response could be transmitted
SendError
Error sending this request
SenderFutureDropped
Sender future has already been dropped
SerializationError
Request failed to be serialized
Timeout
Timeout waiting for the response of this request. In this case a receiver was registered for responding these requests but the response never arrived before the timeout was hit.
UnsupportedProtocols
The remote supports none of the requested protocols.
NoResponse
No response after asking a couple of peers.
Other(String)
Error that doesn’t match any of the other error causes
Trait Implementations§
Source§impl Clone for OutboundRequestError
impl Clone for OutboundRequestError
Source§fn clone(&self) -> OutboundRequestError
fn clone(&self) -> OutboundRequestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundRequestError
impl Debug for OutboundRequestError
Source§impl Display for OutboundRequestError
impl Display for OutboundRequestError
impl Eq for OutboundRequestError
Source§impl Error for OutboundRequestError
impl Error for OutboundRequestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<OutboundRequestError> for RequestError
impl From<OutboundRequestError> for RequestError
Source§fn from(source: OutboundRequestError) -> Self
fn from(source: OutboundRequestError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutboundRequestError
impl PartialEq for OutboundRequestError
Source§fn eq(&self, other: &OutboundRequestError) -> bool
fn eq(&self, other: &OutboundRequestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutboundRequestError
Auto Trait Implementations§
impl Freeze for OutboundRequestError
impl RefUnwindSafe for OutboundRequestError
impl Send for OutboundRequestError
impl Sync for OutboundRequestError
impl Unpin for OutboundRequestError
impl UnsafeUnpin for OutboundRequestError
impl UnwindSafe for OutboundRequestError
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