pub enum Direction {
None,
Read,
Write,
ReadWrite,
}
Expand description
The direction that an ioctl
is going.
Note that this is relative to userspace. Read
means reading data from the
kernel, and write means the kernel writing data to userspace.
Variants§
None
None of the above.
Read
Read data from the kernel.
Write
Write data to the kernel.
ReadWrite
Read and write data to the kernel.
Trait Implementations§
source§impl Ord for Direction
impl Ord for Direction
source§impl PartialEq<Direction> for Direction
impl PartialEq<Direction> for Direction
source§impl PartialOrd<Direction> for Direction
impl PartialOrd<Direction> for Direction
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more