pub enum OverlayError {
Show 21 variants
TransportNotAvailable(String),
TransportCommand(String),
BoringtunDevice(String),
InvalidCidr(String),
NoAvailableIps,
IpAlreadyAllocated(Ipv4Addr),
IpNotInRange(Ipv4Addr, String),
InterfaceExists(String),
InterfaceNotFound(String),
PeerNotFound(String),
PeerUnreachable {
ip: Ipv4Addr,
reason: String,
},
Config(String),
Io(Error),
Json(Error),
AlreadyInitialized(String),
NotInitialized,
PermissionDenied(String),
Timeout(String),
InvalidKey(String),
NetworkConfig(String),
Dns(String),
}Expand description
Errors that can occur during overlay network operations
Variants§
TransportNotAvailable(String)
Overlay transport not available
TransportCommand(String)
Transport command execution failed
BoringtunDevice(String)
Boringtun device error
InvalidCidr(String)
Invalid CIDR notation
NoAvailableIps
No available IPs in the configured CIDR range
IpAlreadyAllocated(Ipv4Addr)
IP address already allocated
IpNotInRange(Ipv4Addr, String)
IP address not in CIDR range
InterfaceExists(String)
Interface already exists
InterfaceNotFound(String)
Interface not found
PeerNotFound(String)
Peer not found
PeerUnreachable
Peer is unreachable
Config(String)
Configuration file error
Io(Error)
IO error
Json(Error)
JSON serialization/deserialization error
AlreadyInitialized(String)
Already initialized
NotInitialized
Not initialized
PermissionDenied(String)
Permission denied
Timeout(String)
Timeout waiting for operation
InvalidKey(String)
Invalid key format
NetworkConfig(String)
Network configuration error
Dns(String)
DNS error
Trait Implementations§
Source§impl Debug for OverlayError
impl Debug for OverlayError
Source§impl Display for OverlayError
impl Display for OverlayError
Source§impl Error for OverlayError
impl Error for OverlayError
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<Error> for OverlayError
impl From<Error> for OverlayError
Auto Trait Implementations§
impl Freeze for OverlayError
impl !RefUnwindSafe for OverlayError
impl Send for OverlayError
impl Sync for OverlayError
impl Unpin for OverlayError
impl UnsafeUnpin for OverlayError
impl !UnwindSafe for OverlayError
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