Struct rustix::io::ReadWriteFlags

source ·
#[repr(transparent)]
pub struct ReadWriteFlags(_);
Expand description

RWF_* constants for use with preadv2 and pwritev2.

Implementations§

RWF_DSYNC (since Linux 4.7)

RWF_HIPRI (since Linux 4.6)

RWF_SYNC (since Linux 4.7)

RWF_NOWAIT (since Linux 4.14)

RWF_APPEND (since Linux 4.16)

Trait Implementations§

Formats the value using the given formatter.

Returns the intersection between the two sets of flags.

The resulting type after applying the & operator.

Disables all flags disabled in the set.

Returns the union of the two sets of flags.

The resulting type after applying the | operator.

Adds the set of flags.

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

The resulting type after applying the ^ operator.

Toggles the set of flags.

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
The set of available flags and their names.
The underlying storage type.
Returns the raw value of the flags currently stored.
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag). Read more
Returns an empty set of flags.
Returns the set containing all flags.
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag. Read more
Convert from underlying bit representation, dropping any bits that do not correspond to flags. Read more
Get the flag for a particular name.
Iterate over enabled flag values.
Iterate over the raw names and bits for enabled flag values.
Returns true if no flags are currently stored.
Returns true if all flags are currently set.
Returns true if there are flags common to both self and other.
Returns true if all of the flags in other are contained within self.
Inserts the specified flags in-place. Read more
Removes the specified flags in-place. Read more
Toggles the specified flags in-place. Read more
Inserts or removes the specified flags depending on the passed value.
Returns the intersection between the flags in self and other.
Returns the union of between the flags in self and other.
Returns the difference between the flags in self and other.
Returns the symmetric difference between the flags in self and other. Read more
Returns the complement of this set of flags.
Creates a value from an iterator. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
Formats the value using the given formatter.

Returns the complement of this set of flags.

The resulting type after applying the ! operator.
Formats the value using the given formatter.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The type of the underlying storage.
The type of the internal field on the generated flags type.

Returns the set difference of the two sets of flags.

The resulting type after applying the - operator.

Disables all flags enabled in the set.

Formats the value using the given formatter.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
👎Deprecated: use the Flags trait instead
An iterator over enabled flags in an instance of the type.
👎Deprecated: use the Flags trait instead
An iterator over the raw names and bits for enabled flags in an instance of the type.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.