pub enum LinkDialError {
Configuration(String),
Io(Error),
Carrier(CarrierError),
Handshake(LinkHandshakeError),
ConnectRefused {
reason_code: u16,
reason: Option<String>,
},
Version,
Ended(&'static str),
}Expand description
Why an outbound open could not reach a peer’s link answer.
Variants§
Configuration(String)
The entry cannot be dialed as configured.
Io(Error)
A resolver or connection failed without exposing credentials.
Carrier(CarrierError)
Framing or the carrier’s I/O failed.
Handshake(LinkHandshakeError)
The KK peer proof did not finish.
ConnectRefused
The peer refused machine-pass admission at Connect.
Version
A Connect ack selected a version outside the offered range.
Ended(&'static str)
The peer ended before answering Connect or LinkOpen.
Trait Implementations§
Source§impl Debug for LinkDialError
impl Debug for LinkDialError
Source§impl Display for LinkDialError
impl Display for LinkDialError
Source§impl Error for LinkDialError
impl Error for LinkDialError
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()
Source§impl From<CarrierError> for LinkDialError
impl From<CarrierError> for LinkDialError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for LinkDialError
impl From<Error> for LinkDialError
Source§impl From<LinkHandshakeError> for LinkDialError
impl From<LinkHandshakeError> for LinkDialError
Source§fn from(source: LinkHandshakeError) -> Self
fn from(source: LinkHandshakeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LinkDialError
impl !UnwindSafe for LinkDialError
impl Freeze for LinkDialError
impl Send for LinkDialError
impl Sync for LinkDialError
impl Unpin for LinkDialError
impl UnsafeUnpin for LinkDialError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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