pub enum DialErr {
Banned,
ConnectionLimit {
limit: u32,
current: u32,
},
LocalPeerId,
NoAddresses,
Aborted,
WrongPeerId {
obtained: PeerId,
},
InvalidPeerId(Multihash),
ConnectionIo(Error),
Transport(Vec<(Multiaddr, TransportError<Error>)>),
Shutdown,
}
Expand description
Error on dialing a peer and establishing a connection.
Variants
Banned
The peer is currently banned.
ConnectionLimit
The configured limit for simultaneous outgoing connections has been reached.
LocalPeerId
The peer being dialed is the local peer and thus the dial was aborted.
NoAddresses
No direct or relayed addresses for the peer are known.
Aborted
Pending connection attempt has been aborted.
WrongPeerId
Fields
obtained: PeerId
The peer identity obtained on the connection did not match the one that was expected.
InvalidPeerId(Multihash)
The provided peer identity is invalid.
ConnectionIo(Error)
An I/O error occurred on the connection.
Transport(Vec<(Multiaddr, TransportError<Error>)>)
An error occurred while negotiating the transport protocol(s) on a connection.
Shutdown
The communication system was shut down before the dialing attempt resolved.
Trait Implementations
sourceimpl Error for DialErr
impl Error for DialErr
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DialErr> for ListenRelayErr
impl From<DialErr> for ListenRelayErr
Auto Trait Implementations
impl !RefUnwindSafe for DialErr
impl Send for DialErr
impl Sync for DialErr
impl Unpin for DialErr
impl !UnwindSafe for DialErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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