pub enum PunchError {
Named(&'static str),
Broker(String),
Io(Error),
Udp(UdpError),
Noise(LinkHandshakeError),
Wire(CarrierError),
}Expand description
A named opening refusal; errors never select another carrier.
Variants§
Named(&'static str)
Broker(String)
A broker’s own refusal, without request or credential bytes.
Io(Error)
Udp(UdpError)
Noise(LinkHandshakeError)
The expected machine failed its KK proof.
Wire(CarrierError)
Trait Implementations§
Source§impl Debug for PunchError
impl Debug for PunchError
Source§impl Display for PunchError
impl Display for PunchError
Source§impl Error for PunchError
impl Error for PunchError
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 PunchError
impl From<CarrierError> for PunchError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PunchError
impl From<Error> for PunchError
Source§impl From<LinkHandshakeError> for PunchError
impl From<LinkHandshakeError> for PunchError
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 PunchError
impl !UnwindSafe for PunchError
impl Freeze for PunchError
impl Send for PunchError
impl Sync for PunchError
impl Unpin for PunchError
impl UnsafeUnpin for PunchError
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