pub enum RelayOpenError {
Carrier(CarrierError),
Handshake(LinkHandshakeError),
Refused(String),
}Expand description
A relayed open retains the endpoint or relay’s own refusal.
Variants§
Carrier(CarrierError)
The ordinary wire connection failed or answered an unexpected frame.
Handshake(LinkHandshakeError)
The endpoint’s Noise peer proof failed.
Refused(String)
The relay or the far endpoint refused or ended the open.
Trait Implementations§
Source§impl Debug for RelayOpenError
impl Debug for RelayOpenError
Source§impl Display for RelayOpenError
impl Display for RelayOpenError
Source§impl Error for RelayOpenError
impl Error for RelayOpenError
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 RelayOpenError
impl From<CarrierError> for RelayOpenError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<LinkHandshakeError> for RelayOpenError
impl From<LinkHandshakeError> for RelayOpenError
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 RelayOpenError
impl !UnwindSafe for RelayOpenError
impl Freeze for RelayOpenError
impl Send for RelayOpenError
impl Sync for RelayOpenError
impl Unpin for RelayOpenError
impl UnsafeUnpin for RelayOpenError
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