Enum tor_cell::relaycell::msg::IpVersionPreference [−][src]
#[non_exhaustive] pub enum IpVersionPreference { Ipv4Only, Ipv4Preferred, Ipv6Preferred, Ipv6Only, }
Expand description
A preference for IPv4 vs IPv6 addresses; usable as a nicer frontend for BeginFlags.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Only IPv4 is allowed.
IPv4 and IPv6 are both allowed, and IPv4 is preferred.
IPv4 and IPv6 are both allowed, and IPv6 is preferred.
Only IPv6 is allowed.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for IpVersionPreference
impl Send for IpVersionPreference
impl Sync for IpVersionPreference
impl Unpin for IpVersionPreference
impl UnwindSafe for IpVersionPreference
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V