wasmtime_wasi::bindings::sync::sockets::udp

Type Alias IpAddressFamily

Source
pub type IpAddressFamily = IpAddressFamily;

Aliased Type§

enum IpAddressFamily {
    Ipv4 = 0,
    Ipv6 = 1,
}

Variants§

§

Ipv4 = 0

Similar to AF_INET in POSIX.

§

Ipv6 = 1

Similar to AF_INET6 in POSIX.

Trait Implementations

Source§

impl Clone for IpAddressFamily

Source§

fn clone(&self) -> IpAddressFamily

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IpAddressFamily

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AddressFamily> for IpAddressFamily

Source§

fn from(family: AddressFamily) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for IpAddressFamily

Source§

fn eq(&self, other: &IpAddressFamily) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ComponentType for IpAddressFamily

Source§

impl Copy for IpAddressFamily

Source§

impl Eq for IpAddressFamily

Source§

impl Lift for IpAddressFamily

Source§

impl Lower for IpAddressFamily

Source§

impl StructuralPartialEq for IpAddressFamily