pub enum EndpointConfigError {
PortInUse(u16),
InvalidPort(u32),
PermissionDenied(u16),
NoPortInRange(u16, u16),
DualStackNotSupported,
Ipv6NotAvailable,
BindFailed(String),
InvalidConfig(String),
IoError(String),
}
Expand description
Errors related to endpoint port configuration and binding
Variants§
PortInUse(u16)
Port is already in use
InvalidPort(u32)
Invalid port number
PermissionDenied(u16)
Cannot bind to privileged port
NoPortInRange(u16, u16)
No available port in range
DualStackNotSupported
Dual-stack not supported on this platform
Ipv6NotAvailable
IPv6 not available on this system
BindFailed(String)
Failed to bind socket
InvalidConfig(String)
Invalid configuration
IoError(String)
IO error during socket operations
Trait Implementations§
Source§impl Clone for EndpointConfigError
impl Clone for EndpointConfigError
Source§fn clone(&self) -> EndpointConfigError
fn clone(&self) -> EndpointConfigError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EndpointConfigError
impl Debug for EndpointConfigError
Source§impl Display for EndpointConfigError
impl Display for EndpointConfigError
Source§impl Error for EndpointConfigError
impl Error for EndpointConfigError
1.30.0 · 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 EndpointConfigError
impl From<Error> for EndpointConfigError
Source§impl PartialEq for EndpointConfigError
impl PartialEq for EndpointConfigError
impl Eq for EndpointConfigError
impl StructuralPartialEq for EndpointConfigError
Auto Trait Implementations§
impl Freeze for EndpointConfigError
impl RefUnwindSafe for EndpointConfigError
impl Send for EndpointConfigError
impl Sync for EndpointConfigError
impl Unpin for EndpointConfigError
impl UnwindSafe for EndpointConfigError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.