Enum std::os::unix::net::ancillary::AncillaryData[][src]

pub enum AncillaryData<'a> {
    ScmRights(ScmRights<'a>),
    ScmCredentials(ScmCredentials<'a>),
}
🔬 This is a nightly-only experimental API. (unix_socket_ancillary_data #76915)
This is supported on Unix and (Android or DragonFly BSD or Emscripten or FreeBSD or Linux or NetBSD or OpenBSD) only.
Expand description

This enum represent one control message of variable type.

Variants

ScmRights(ScmRights<'a>)
🔬 This is a nightly-only experimental API. (unix_socket_ancillary_data #76915)

Tuple Fields of ScmRights

0: ScmRights<'a>
🔬 This is a nightly-only experimental API. (unix_socket_ancillary_data #76915)
ScmCredentials(ScmCredentials<'a>)
🔬 This is a nightly-only experimental API. (unix_socket_ancillary_data #76915)
This is supported on doc or Android or Linux only.

Tuple Fields of ScmCredentials

0: ScmCredentials<'a>
🔬 This is a nightly-only experimental API. (unix_socket_ancillary_data #76915)

Implementations

Create an AncillaryData::ScmRights variant.

Safety

data must contain a valid control message and the control message must be type of SOL_SOCKET and level of SCM_RIGHTS.

This is supported on doc or Android or Linux only.

Create an AncillaryData::ScmCredentials variant.

Safety

data must contain a valid control message and the control message must be type of SOL_SOCKET and level of SCM_CREDENTIALS or SCM_CREDENTIALS.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.