Struct lrs::socket::unix::UnixSockAddr

A Unix socket address.

Syntax

struct UnixSockAddr {
    /* private fields */
}

Static methods

NameDescription
from_abstract

Creates a new abstract Unix socket address.

from_bytes

Creates a Unix socket address from given bytes.

from_bytes_unchecked

Creates a Unix socket address from given bytes without validation.

from_mut_bytes

Creates a mutable Unix socket address from given bytes.

from_mut_bytes_unchecked

Creates a mutable Unix socket address from given bytes without validation.

from_path

Creates a new path Unix socket address.

from_unnamed

Creates a new unnamed Unix socket address.

Methods

ReceiverNameDescription
&selfaddr_type

Returns the address type of the socket address.

&selfas_abstract

Returns the abstract address of an abstract Unix socket address.

&mut selfas_mut_abstract

Returns the mutable abstract address of an abstract Unix socket address.

&mut selfas_mut_path

Returns the mutable path of a path Unix socket address.

&selfas_path

Returns the path of a path Unix socket address.

Trait implementations

NameDescription
Debug

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