Enum litep2p::error::ImmediateDialError
source · pub enum ImmediateDialError {
PeerIdMissing,
TriedToDialSelf,
AlreadyConnected,
NoAddressAvailable,
TaskClosed,
ChannelClogged,
}
Expand description
Dialing resulted in an immediate error before performing any network operations.
Variants§
PeerIdMissing
The provided address does not include a peer ID.
TriedToDialSelf
The peer ID provided in the address is the same as the local peer ID.
AlreadyConnected
Cannot dial an already connected peer.
NoAddressAvailable
Cannot dial a peer that does not have any address available.
TaskClosed
The essential task was closed.
ChannelClogged
The channel is clogged.
Trait Implementations§
source§impl Clone for ImmediateDialError
impl Clone for ImmediateDialError
source§fn clone(&self) -> ImmediateDialError
fn clone(&self) -> ImmediateDialError
Returns a copy of the value. Read more
1.0.0 · 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 ImmediateDialError
impl Debug for ImmediateDialError
source§impl Display for ImmediateDialError
impl Display for ImmediateDialError
source§impl Error for ImmediateDialError
impl Error for ImmediateDialError
1.30.0 · 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<ImmediateDialError> for Error
impl From<ImmediateDialError> for Error
source§fn from(source: ImmediateDialError) -> Self
fn from(source: ImmediateDialError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ImmediateDialError
impl PartialEq for ImmediateDialError
source§fn eq(&self, other: &ImmediateDialError) -> bool
fn eq(&self, other: &ImmediateDialError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImmediateDialError
impl Eq for ImmediateDialError
impl StructuralPartialEq for ImmediateDialError
Auto Trait Implementations§
impl Freeze for ImmediateDialError
impl RefUnwindSafe for ImmediateDialError
impl Send for ImmediateDialError
impl Sync for ImmediateDialError
impl Unpin for ImmediateDialError
impl UnwindSafe for ImmediateDialError
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.