Enum isahc::config::IpVersion[][src]

pub enum IpVersion {
    V4,
    V6,
    Any,
}

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

impl Clone for IpVersion[src]

impl Debug for IpVersion[src]

impl Default for IpVersion[src]

Auto Trait Implementations

impl RefUnwindSafe for IpVersion[src]

impl Send for IpVersion[src]

impl Sync for IpVersion[src]

impl Unpin for IpVersion[src]

impl UnwindSafe for IpVersion[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]