#[non_exhaustive]#[repr(i32)]pub enum LioOpcode {
LIO_NOP = 2,
LIO_WRITE = 1,
LIO_READ = 0,
}
Expand description
When used with lio_listio
, determines whether a
given aiocb
should be used for a read operation, a write operation, or
ignored. Has no effect for any other aio functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LIO_NOP = 2
No operation
LIO_WRITE = 1
Write data as if by a call to AioCb::write
LIO_READ = 0
Write data as if by a call to AioCb::read
Trait Implementations§
Source§impl Ord for LioOpcode
impl Ord for LioOpcode
Source§impl PartialOrd for LioOpcode
impl PartialOrd for LioOpcode
impl Copy for LioOpcode
impl Eq for LioOpcode
impl StructuralPartialEq for LioOpcode
Auto Trait Implementations§
impl Freeze for LioOpcode
impl RefUnwindSafe for LioOpcode
impl Send for LioOpcode
impl Sync for LioOpcode
impl Unpin for LioOpcode
impl UnwindSafe for LioOpcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more