pub enum ParseGetResponseError {
Show 27 variants
ReadLineIoError(Error),
ServerError(String),
IncompleteResponse,
EmptyResponse,
MissingEndOfResponseNewline,
UnknownKey(String),
MissingValueForKey(GetKey),
InternalBuildGetDeviceError(DeviceBuilderError),
InternalBuildGetPeerError(PeerBuilderError),
InvalidPrivateKey,
InvalidPublicKey(String),
InvalidPresharedKey(String),
InvalidListenPort(ParseIntError),
InvalidFwmark(ParseIntError),
InvalidEndpoint(AddrParseError),
InvalidPersistentKeepaliveInterval(ParseIntError),
InvalidAllowedIp(ParseAllowedIpError),
InvalidRxBytes(ParseIntError),
InvalidTxBytes(ParseIntError),
InvalidLastHandhsakeTimeSec(ParseIntError),
InvalidLastHandhsakeTimeNsec(ParseIntError),
InvalidProtocolVersion(ParseIntError),
InvalidStartOfResponse(GetKey),
AmbiguousPrivateKey,
PeerLevelKeyBeforePublicKey(GetKey),
InterfaceLevelKeyAfterPeerLevelKey(GetKey),
DataAfterEndOfResponse(GetKey),
}Variants
ReadLineIoError(Error)
ServerError(String)
IncompleteResponse
EmptyResponse
MissingEndOfResponseNewline
UnknownKey(String)
MissingValueForKey(GetKey)
InternalBuildGetDeviceError(DeviceBuilderError)
InternalBuildGetPeerError(PeerBuilderError)
InvalidPrivateKey
InvalidPublicKey(String)
InvalidPresharedKey(String)
InvalidListenPort(ParseIntError)
InvalidFwmark(ParseIntError)
InvalidEndpoint(AddrParseError)
InvalidPersistentKeepaliveInterval(ParseIntError)
InvalidAllowedIp(ParseAllowedIpError)
InvalidRxBytes(ParseIntError)
InvalidTxBytes(ParseIntError)
InvalidLastHandhsakeTimeSec(ParseIntError)
InvalidLastHandhsakeTimeNsec(ParseIntError)
InvalidProtocolVersion(ParseIntError)
InvalidStartOfResponse(GetKey)
AmbiguousPrivateKey
PeerLevelKeyBeforePublicKey(GetKey)
InterfaceLevelKeyAfterPeerLevelKey(GetKey)
DataAfterEndOfResponse(GetKey)
Trait Implementations
sourceimpl Debug for ParseGetResponseError
impl Debug for ParseGetResponseError
sourceimpl Display for ParseGetResponseError
impl Display for ParseGetResponseError
sourceimpl Error for ParseGetResponseError
impl Error for ParseGetResponseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ParseAllowedIpError> for ParseGetResponseError
impl From<ParseAllowedIpError> for ParseGetResponseError
sourcefn from(source: ParseAllowedIpError) -> Self
fn from(source: ParseAllowedIpError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseGetResponseError> for GetDeviceError
impl From<ParseGetResponseError> for GetDeviceError
sourcefn from(source: ParseGetResponseError) -> Self
fn from(source: ParseGetResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ParseGetResponseError
impl Send for ParseGetResponseError
impl Sync for ParseGetResponseError
impl Unpin for ParseGetResponseError
impl !UnwindSafe for ParseGetResponseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more