class InterfaceFlags

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

Bits representing the interface flags as returned by the SIOCGIFFLAGS ioctl

operation. These bitmasks are intended to track the C API definition. For

example, `InterfaceFlags.UP` corresponds to `IFF_UP`, etc.

|InterfaceFlags| 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 InterfaceFlags kUp
static InterfaceFlags kBroadcast
static InterfaceFlags kDebug
static InterfaceFlags kLoopback
static InterfaceFlags kPointtopoint
static InterfaceFlags kNotrailers
static InterfaceFlags kRunning
static InterfaceFlags kNoarp
static InterfaceFlags kPromisc
static InterfaceFlags kAllmulti
static InterfaceFlags kLeader
static InterfaceFlags kFollower
static InterfaceFlags kMulticast
static InterfaceFlags kPortsel
static InterfaceFlags kAutomedia
static InterfaceFlags kDynamic
static InterfaceFlags kMask

Public Methods

void InterfaceFlags ()

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

void InterfaceFlags (uint16_t value)

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

preserving any bit member not defined in the FIDL schema.

Defined at line 433 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 452 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 453 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

bool operator== (const InterfaceFlags & other)

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

bool operator!= (const InterfaceFlags & other)

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

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

Constructs an instance of |InterfaceFlags| 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 469 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

InterfaceFlags TruncatingUnknown (uint16_t value)

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

clearing any bit member not defined in the FIDL schema.

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

InterfaceFlags operator~ ()

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

InterfaceFlags operator| (const InterfaceFlags & other)

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

InterfaceFlags operator& (const InterfaceFlags & other)

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

InterfaceFlags operator^ (const InterfaceFlags & other)

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

InterfaceFlags operator- (const InterfaceFlags & other)

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

void operator|= (const InterfaceFlags & other)

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

void operator&= (const InterfaceFlags & other)

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

void operator^= (const InterfaceFlags & other)

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

void operator-= (const InterfaceFlags & other)

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