[][src]Struct linux_aio_tokio::WriteFlags

pub struct WriteFlags { /* fields omitted */ }

AIO write flags. See io_submit

Methods

impl WriteFlags[src]

pub const APPEND: WriteFlags[src]

Append data to the end of the file. See the description of the flag of the same name in pwritev2(2) as well as the description of O_APPEND in open(2). The aio_offset field is ignored. The file offset is not changed.

pub const DSYNC: WriteFlags[src]

Write operation complete according to requirement of synchronized I/O data integrity. See the description of the flag of the same name in pwritev2(2) as well the description of O_DSYNC in open(2).

pub const HIPRI: WriteFlags[src]

High priority request, poll if possible

pub const NOWAIT: WriteFlags[src]

Don't wait if the I/O will block for operations such as file block allocations, dirty page flush, mutex locks, or a congested block device inside the kernel. If any of these conditions are met, the control block is returned immediately with a return value of -EAGAIN in the res field of the io_event structure.

pub const SYNC: WriteFlags[src]

Write operation complete according to requirement of synchronized I/O file integrity. See the description of the flag of the same name in pwritev2(2) as well the description of O_SYNC in open(2).

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

Returns an empty set of flags

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

Returns the set containing all flags.

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

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: isize) -> Option<WriteFlags>[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: isize) -> WriteFlags[src]

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

pub const unsafe fn from_bits_unchecked(bits: isize) -> WriteFlags[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: WriteFlags) -> bool[src]

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

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

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

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

Inserts the specified flags in-place.

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

Removes the specified flags in-place.

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

Toggles the specified flags in-place.

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

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

Trait Implementations

impl Binary for WriteFlags[src]

impl BitAnd<WriteFlags> for WriteFlags[src]

type Output = WriteFlags

The resulting type after applying the & operator.

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

Returns the intersection between the two sets of flags.

impl BitAndAssign<WriteFlags> for WriteFlags[src]

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

Disables all flags disabled in the set.

impl BitOr<WriteFlags> for WriteFlags[src]

type Output = WriteFlags

The resulting type after applying the | operator.

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

Returns the union of the two sets of flags.

impl BitOrAssign<WriteFlags> for WriteFlags[src]

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

Adds the set of flags.

impl BitXor<WriteFlags> for WriteFlags[src]

type Output = WriteFlags

The resulting type after applying the ^ operator.

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

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

impl BitXorAssign<WriteFlags> for WriteFlags[src]

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

Toggles the set of flags.

impl Clone for WriteFlags[src]

impl Copy for WriteFlags[src]

impl Debug for WriteFlags[src]

impl Eq for WriteFlags[src]

impl Extend<WriteFlags> for WriteFlags[src]

impl FromIterator<WriteFlags> for WriteFlags[src]

impl Hash for WriteFlags[src]

impl LowerHex for WriteFlags[src]

impl Not for WriteFlags[src]

type Output = WriteFlags

The resulting type after applying the ! operator.

fn not(self) -> WriteFlags[src]

Returns the complement of this set of flags.

impl Octal for WriteFlags[src]

impl Ord for WriteFlags[src]

impl PartialEq<WriteFlags> for WriteFlags[src]

impl PartialOrd<WriteFlags> for WriteFlags[src]

impl StructuralEq for WriteFlags[src]

impl StructuralPartialEq for WriteFlags[src]

impl Sub<WriteFlags> for WriteFlags[src]

type Output = WriteFlags

The resulting type after applying the - operator.

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

Returns the set difference of the two sets of flags.

impl SubAssign<WriteFlags> for WriteFlags[src]

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

Disables all flags enabled in the set.

impl UpperHex for WriteFlags[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.