Struct lrs::socket::ip::Ipv6SockAddr

An Ipv6 socket address.

Syntax

struct Ipv6SockAddr {
    /* private fields */
}

Static methods

NameDescription
from_addr_port

Creates a new Ipv6 socket address from an address and a port.

from_bytes

Creates an Ipv6 address from given bytes.

from_bytes_unchecked

Creates an Ipv6 address from given bytes without validating the contents.

from_mut_bytes

Creates a mutable Ipv6 address from given bytes.

from_mut_bytes_unchecked

Creates a mutable Ipv6 address from given bytes without validating the contents.

Methods

ReceiverNameDescription
&selfaddr

Returns the Ipv6 address of an Ipv6 socket address.

&selfflow_label

Returns the flow label of an Ipv6 socket address.

&selfport

Returns the port of an Ipv6 socket address.

&selfscope_id

Returns the scope id of an Ipv6 socket address.

&mut selfset_addr

Sets the Ipv6 address of an Ipv6 socket address.

&mut selfset_flow_label

Sets the flow label of an Ipv6 socket address.

&mut selfset_port

Sets the port of an Ipv6 socket address.

&mut selfset_scope_id

Sets the scope id of an Ipv6 socket address.

Trait implementations

NameDescription
Debug

Objects that can be formatted in a "debug" form.