pub enum IpVersion {
V4,
V6,
Any,
}
Expand description
Supported IP versions that can be used.
Variants
V4
Use IPv4 addresses only. IPv6 addresses will be ignored.
V6
Use IPv6 addresses only. IPv4 addresses will be ignored.
Any
Use either IPv4 or IPv6 addresses. By default IPv6 addresses are preferred if available, otherwise an IPv4 address will be used. IPv6 addresses are tried first by following the recommendations of RFC 6555 “Happy Eyeballs”.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IpVersion
impl Send for IpVersion
impl Sync for IpVersion
impl Unpin for IpVersion
impl UnwindSafe for IpVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more