pub enum LinkError {
ConnectionClosed,
ConnectionFailed(String),
PeerNotFound(String),
ProtocolNotSupported(ProtocolId),
Timeout,
StreamReset(u64),
Io(String),
Shutdown,
RateLimited,
Internal(String),
}Expand description
Errors that can occur during link transport operations.
Variants§
ConnectionClosed
The connection was closed.
ConnectionFailed(String)
Failed to establish connection.
PeerNotFound(String)
The peer is not known/reachable.
ProtocolNotSupported(ProtocolId)
Protocol negotiation failed.
Timeout
A timeout occurred.
StreamReset(u64)
The stream was reset by the peer.
Io(String)
An I/O error occurred.
Shutdown
The transport is shutting down.
RateLimited
Rate limit exceeded.
Internal(String)
Internal error.
Trait Implementations§
Source§impl Error for LinkError
impl Error for LinkError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for LinkError
impl RefUnwindSafe for LinkError
impl Send for LinkError
impl Sync for LinkError
impl Unpin for LinkError
impl UnwindSafe for LinkError
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