pub enum WireguardInterfaceError {
Show 15 variants
Interface(String),
CommandExecutionFailed(Error),
KeyDecode(DecodeError),
CommandExecutionError {
stdout: String,
stderr: String,
},
IpAddrMask(IpAddrParseError),
ExecutableNotFound(String),
UnixSockerError(String),
PeerConfigurationError,
ReadInterfaceError(String),
NetlinkError(String),
BsdError(String),
UserspaceNotSupported,
KernelNotSupported,
DnsError,
ServiceInstallationFailed {
err: Error,
message: String,
},
}
Variants§
Interface(String)
CommandExecutionFailed(Error)
KeyDecode(DecodeError)
CommandExecutionError
IpAddrMask(IpAddrParseError)
ExecutableNotFound(String)
UnixSockerError(String)
PeerConfigurationError
ReadInterfaceError(String)
NetlinkError(String)
BsdError(String)
UserspaceNotSupported
KernelNotSupported
DnsError
ServiceInstallationFailed
Trait Implementations§
source§impl Debug for WireguardInterfaceError
impl Debug for WireguardInterfaceError
source§impl Display for WireguardInterfaceError
impl Display for WireguardInterfaceError
source§impl Error for WireguardInterfaceError
impl Error for WireguardInterfaceError
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<DecodeError> for WireguardInterfaceError
impl From<DecodeError> for WireguardInterfaceError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for WireguardInterfaceError
impl From<Error> for WireguardInterfaceError
source§impl From<IpAddrParseError> for WireguardInterfaceError
impl From<IpAddrParseError> for WireguardInterfaceError
source§fn from(source: IpAddrParseError) -> Self
fn from(source: IpAddrParseError) -> Self
Converts to this type from the input type.
source§impl From<NetlinkError> for WireguardInterfaceError
impl From<NetlinkError> for WireguardInterfaceError
source§fn from(error: NetlinkError) -> Self
fn from(error: NetlinkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WireguardInterfaceError
impl Send for WireguardInterfaceError
impl Sync for WireguardInterfaceError
impl Unpin for WireguardInterfaceError
impl !UnwindSafe for WireguardInterfaceError
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