pub struct ReadFlags { /* private fields */ }
Expand description
AIO read flags. See io_submit
Implementations§
Source§impl ReadFlags
impl ReadFlags
Sourcepub const NOWAIT: ReadFlags
pub const NOWAIT: ReadFlags
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.
Sourcepub fn from_bits(bits: isize) -> Option<ReadFlags>
pub fn from_bits(bits: isize) -> Option<ReadFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: isize) -> ReadFlags
pub const fn from_bits_truncate(bits: isize) -> ReadFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: isize) -> ReadFlags
pub const unsafe fn from_bits_unchecked(bits: isize) -> ReadFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: ReadFlags) -> bool
pub const fn intersects(&self, other: ReadFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for ReadFlags
impl BitAndAssign for ReadFlags
Source§fn bitand_assign(&mut self, other: ReadFlags)
fn bitand_assign(&mut self, other: ReadFlags)
Disables all flags disabled in the set.
Source§impl BitOrAssign for ReadFlags
impl BitOrAssign for ReadFlags
Source§fn bitor_assign(&mut self, other: ReadFlags)
fn bitor_assign(&mut self, other: ReadFlags)
Adds the set of flags.
Source§impl BitXorAssign for ReadFlags
impl BitXorAssign for ReadFlags
Source§fn bitxor_assign(&mut self, other: ReadFlags)
fn bitxor_assign(&mut self, other: ReadFlags)
Toggles the set of flags.
Source§impl Extend<ReadFlags> for ReadFlags
impl Extend<ReadFlags> for ReadFlags
Source§fn extend<T: IntoIterator<Item = ReadFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ReadFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<ReadFlags> for ReadFlags
impl FromIterator<ReadFlags> for ReadFlags
Source§impl Ord for ReadFlags
impl Ord for ReadFlags
Source§impl PartialOrd for ReadFlags
impl PartialOrd for ReadFlags
Source§impl SubAssign for ReadFlags
impl SubAssign for ReadFlags
Source§fn sub_assign(&mut self, other: ReadFlags)
fn sub_assign(&mut self, other: ReadFlags)
Disables all flags enabled in the set.