pub enum OverlayError {
Show 26 variants
TransportNotAvailable(String),
TransportCommand(String),
BoringtunDevice(String),
InvalidCidr(String),
NoAvailableIps,
IpAlreadyAllocated(IpAddr),
IpNotInRange(IpAddr, String),
InterfaceExists(String),
InterfaceNotFound(String),
PeerNotFound(String),
PeerUnreachable {
ip: IpAddr,
reason: String,
},
Config(String),
Io(Error),
Json(Error),
AlreadyInitialized(String),
NotInitialized,
PermissionDenied(String),
Timeout(String),
InvalidKey(String),
NetworkConfig(String),
Dns(String),
StunDiscovery(String),
HolePunchFailed {
peer: String,
reason: String,
},
TurnRelay(String),
NatTraversalFailed {
peer: String,
},
NoStunServers,
}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(IpAddr)
IP address already allocated
IpNotInRange(IpAddr, 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
StunDiscovery(String)
STUN discovery failed
HolePunchFailed
Hole punch failed for a specific peer
TurnRelay(String)
TURN relay error
NatTraversalFailed
NAT traversal exhausted all candidates
NoStunServers
No STUN servers configured
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.