Enum libp2p_core::transport::memory::MemoryTransportError
source · pub enum MemoryTransportError {
Unreachable,
AlreadyInUse,
}
Expand description
Error that can be produced from the MemoryTransport
.
Variants§
Unreachable
There’s no listener on the given port.
AlreadyInUse
Tries to listen on a port that is already in use.
Trait Implementations§
source§impl Clone for MemoryTransportError
impl Clone for MemoryTransportError
source§fn clone(&self) -> MemoryTransportError
fn clone(&self) -> MemoryTransportError
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 MemoryTransportError
impl Debug for MemoryTransportError
source§impl Display for MemoryTransportError
impl Display for MemoryTransportError
source§impl Error for MemoryTransportError
impl Error for MemoryTransportError
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()