[][src]Struct win_etw_metadata::OutFlag

#[repr(transparent)]pub struct OutFlag { /* fields omitted */ }

Specifies how a field should be interpreted or displayed.

Implementations

impl OutFlag[src]

pub const NULL: OutFlag[src]

No display at all.

pub const NOPRINT: OutFlag[src]

No display at all.

pub const STRING: OutFlag[src]

Contains text.

pub const BOOLEAN: OutFlag[src]

Is a boolean. This can only be used with InFlag::INT8.

pub const HEX: OutFlag[src]

Display in hexadecimal. Can be used with any integer type.

pub const PID: OutFlag[src]

The field is a Win32 process ID.

pub const TID: OutFlag[src]

The field is a Win32 thread ID.

pub const PORT: OutFlag[src]

The field is a TCP/IP or UDP/IP port, in big-endian encoding.

pub const IPV4: OutFlag[src]

The field is an IP v4 address, in big-endian encoding.

pub const IPV6: OutFlag[src]

The field is an IP v6 address, in big-endian encoding.

pub const SOCKETADDRESS: OutFlag[src]

The field is a SOCKADDR. See [SOCKADDR](https://docs.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-sockaddr).

pub const XML: OutFlag[src]

The field is text, and should be interpreted as XML.

pub const JSON: OutFlag[src]

The field is text, and should be interpreted as JSON.

pub const WIN32ERROR: OutFlag[src]

The field is a Win32 error code. The field type should be InFlag::UINT32.

pub const NTSTATUS: OutFlag[src]

The field is an NTSTATUS error code. The field type should be InFlag::UINT32.

pub const HRESULT: OutFlag[src]

The field is an HRESULT error code. The field type should be InFlag::INT32.

pub const FILETIME: OutFlag[src]

The field is a Win32 FILETIME value.

pub const SIGNED: OutFlag[src]

Display field as signed.

pub const UNSIGNED: OutFlag[src]

Display field as unsigned.

pub const UTF8: OutFlag[src]

For strings, indicates that the string encoding is UTF-8.

pub const PKCS7_WITH_TYPE_INFO: OutFlag[src]

Used with InFlag::BINARY.

pub const DATETIME_UTC: OutFlag[src]

Indicates that the timezone for a time value is UTC. This can be used with InFlag::FILETIME or InFlag::SYSTEMTIME.

pub const fn empty() -> OutFlag[src]

Returns an empty set of flags

pub const fn all() -> OutFlag[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u8[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u8) -> Option<OutFlag>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u8) -> OutFlag[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u8) -> OutFlag[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: OutFlag) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: OutFlag) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: OutFlag)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: OutFlag)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: OutFlag)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: OutFlag, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for OutFlag[src]

impl BitAnd<OutFlag> for OutFlag[src]

type Output = OutFlag

The resulting type after applying the & operator.

fn bitand(self, other: OutFlag) -> OutFlag[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<OutFlag> for OutFlag[src]

fn bitand_assign(&mut self, other: OutFlag)[src]

Disables all flags disabled in the set.

impl BitOr<OutFlag> for OutFlag[src]

type Output = OutFlag

The resulting type after applying the | operator.

fn bitor(self, other: OutFlag) -> OutFlag[src]

Returns the union of the two sets of flags.

impl BitOrAssign<OutFlag> for OutFlag[src]

fn bitor_assign(&mut self, other: OutFlag)[src]

Adds the set of flags.

impl BitXor<OutFlag> for OutFlag[src]

type Output = OutFlag

The resulting type after applying the ^ operator.

fn bitxor(self, other: OutFlag) -> OutFlag[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<OutFlag> for OutFlag[src]

fn bitxor_assign(&mut self, other: OutFlag)[src]

Toggles the set of flags.

impl Clone for OutFlag[src]

impl Copy for OutFlag[src]

impl Debug for OutFlag[src]

impl Eq for OutFlag[src]

impl Extend<OutFlag> for OutFlag[src]

impl FromIterator<OutFlag> for OutFlag[src]

impl Hash for OutFlag[src]

impl LowerHex for OutFlag[src]

impl Not for OutFlag[src]

type Output = OutFlag

The resulting type after applying the ! operator.

fn not(self) -> OutFlag[src]

Returns the complement of this set of flags.

impl Octal for OutFlag[src]

impl Ord for OutFlag[src]

impl PartialEq<OutFlag> for OutFlag[src]

impl PartialOrd<OutFlag> for OutFlag[src]

impl StructuralEq for OutFlag[src]

impl StructuralPartialEq for OutFlag[src]

impl Sub<OutFlag> for OutFlag[src]

type Output = OutFlag

The resulting type after applying the - operator.

fn sub(self, other: OutFlag) -> OutFlag[src]

Returns the set difference of the two sets of flags.

impl SubAssign<OutFlag> for OutFlag[src]

fn sub_assign(&mut self, other: OutFlag)[src]

Disables all flags enabled in the set.

impl UpperHex for OutFlag[src]

Auto Trait Implementations

impl Send for OutFlag

impl Sync for OutFlag

impl Unpin for OutFlag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.