Enum ya_relay_stack::Error
source · pub enum Error {
Show 23 variants
IpAddr(AddrParseError),
IpAddrNotAllowed(IpAddr),
IpAddrMalformed(String),
IpAddrTaken(IpAddr),
NetAddr(String),
NetAddrTaken(IpAddr),
NetAddrMismatch(IpAddr),
NetEmpty,
NetNotFound,
NetCidr(IpAddr, u8),
NetIdTaken(String),
GatewayMismatch(IpAddr),
PacketMalformed(String),
ProtocolNotSupported(String),
ProtocolUnknown,
EndpointTaken(SocketEndpoint),
EndpointInvalid(SocketEndpoint),
SocketClosed,
ConnectionError(String),
ConnectionTimeout,
Forbidden,
Cancelled,
Other(String),
}Variants§
IpAddr(AddrParseError)
IpAddrNotAllowed(IpAddr)
IpAddrMalformed(String)
IpAddrTaken(IpAddr)
NetAddr(String)
NetAddrTaken(IpAddr)
NetAddrMismatch(IpAddr)
NetEmpty
NetNotFound
NetCidr(IpAddr, u8)
NetIdTaken(String)
GatewayMismatch(IpAddr)
PacketMalformed(String)
ProtocolNotSupported(String)
ProtocolUnknown
EndpointTaken(SocketEndpoint)
EndpointInvalid(SocketEndpoint)
SocketClosed
ConnectionError(String)
ConnectionTimeout
Forbidden
Cancelled
Other(String)
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<AddrParseError> for Error
impl From<AddrParseError> for Error
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.