Enum libp2p_relay::outbound::hop::ConnectError
source · pub enum ConnectError {
ResourceLimitExceeded,
ConnectionFailed,
NoReservation,
PermissionDenied,
Unsupported,
Io(Error),
Protocol(ProtocolViolation),
}
Variants§
ResourceLimitExceeded
ConnectionFailed
NoReservation
PermissionDenied
Unsupported
Io(Error)
Protocol(ProtocolViolation)
Trait Implementations§
source§impl Debug for ConnectError
impl Debug for ConnectError
source§impl Display for ConnectError
impl Display for ConnectError
source§impl Error for ConnectError
impl Error for ConnectError
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<ConnectError> for Error
impl From<ConnectError> for Error
source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ConnectError
impl From<Error> for ConnectError
source§impl From<ProtocolViolation> for ConnectError
impl From<ProtocolViolation> for ConnectError
source§fn from(source: ProtocolViolation) -> Self
fn from(source: ProtocolViolation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
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