class ShutdownMode

Defined at line 26 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

Socket shutdown mode.

|ShutdownMode| is strict, hence is guaranteed to only contain

members defined in the FIDL schema when receiving it in a message.

Sending unknown members will fail at runtime.

Public Members

static ShutdownMode kRead
static ShutdownMode kWrite
static ShutdownMode kMask

Public Methods

void ShutdownMode ()

Defined at line 28 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

void ShutdownMode (uint16_t value)

Constructs an instance of |ShutdownMode| from an underlying primitive value,

preserving any bit member not defined in the FIDL schema.

Defined at line 32 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

uint16_t operator unsigned short ()

Defined at line 37 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

bool operator bool ()

Defined at line 38 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

bool operator== (const ShutdownMode & other)

Defined at line 39 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

bool operator!= (const ShutdownMode & other)

Defined at line 40 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

std::optional<ShutdownMode> TryFrom (uint16_t value)

Constructs an instance of |ShutdownMode| from an underlying primitive value

if the primitive does not contain any unknown members not defined in the

FIDL schema. Otherwise, returns |std::nullopt|.

Defined at line 54 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode TruncatingUnknown (uint16_t value)

Constructs an instance of |ShutdownMode| from an underlying primitive value,

clearing any bit member not defined in the FIDL schema.

Defined at line 63 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode operator~ ()

Defined at line 76 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode operator| (const ShutdownMode & other)

Defined at line 80 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode operator& (const ShutdownMode & other)

Defined at line 85 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode operator^ (const ShutdownMode & other)

Defined at line 90 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

ShutdownMode operator- (const ShutdownMode & other)

Defined at line 95 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

void operator|= (const ShutdownMode & other)

Defined at line 100 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

void operator&= (const ShutdownMode & other)

Defined at line 105 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

void operator^= (const ShutdownMode & other)

Defined at line 110 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

void operator-= (const ShutdownMode & other)

Defined at line 115 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h