class InterfaceFlags
Defined at line 430 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 432 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 436 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 455 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 456 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 457 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 458 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 472 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 481 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 522 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 526 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 531 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 536 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 541 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 546 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 551 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 556 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 561 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h