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)
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§
Source§impl Debug for ParseGetResponseError
impl Debug for ParseGetResponseError
Source§impl Display for ParseGetResponseError
impl Display for ParseGetResponseError
Source§impl Error for ParseGetResponseError
impl Error for ParseGetResponseError
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<ParseAllowedIpError> for ParseGetResponseError
impl From<ParseAllowedIpError> for ParseGetResponseError
Source§fn from(source: ParseAllowedIpError) -> Self
fn from(source: ParseAllowedIpError) -> Self
Converts to this type from the input type.
Source§impl From<ParseGetResponseError> for GetDeviceError
impl From<ParseGetResponseError> for GetDeviceError
Source§fn from(source: ParseGetResponseError) -> Self
fn from(source: ParseGetResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseGetResponseError
impl !RefUnwindSafe for ParseGetResponseError
impl Send for ParseGetResponseError
impl Sync for ParseGetResponseError
impl Unpin for ParseGetResponseError
impl !UnwindSafe for ParseGetResponseError
Blanket Implementations§
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