pub enum DialError {
Timeout,
AddressError(AddressError),
DnsError(DnsError),
NegotiationError(NegotiationError),
}
Expand description
The error type for dialing a peer.
This error is reported via the litep2p events after performing a network dialing operation.
Variants§
Timeout
The dialing operation timed out.
This error indicates that the connection_open_timeout
from the protocol configuration
was exceeded.
AddressError(AddressError)
The provided address for dialing is invalid.
DnsError(DnsError)
An error occurred during DNS lookup operation.
The address provided may be valid, however it failed to resolve to a concrete IP address. This error may be recoverable.
NegotiationError(NegotiationError)
An error occurred during the negotiation process.
Trait Implementations§
source§impl Error for DialError
impl Error for DialError
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()
source§impl From<AddressError> for DialError
impl From<AddressError> for DialError
source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
source§impl From<NegotiationError> for DialError
impl From<NegotiationError> for DialError
source§fn from(source: NegotiationError) -> Self
fn from(source: NegotiationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DialError
impl !RefUnwindSafe for DialError
impl Send for DialError
impl Sync for DialError
impl Unpin for DialError
impl !UnwindSafe for DialError
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