#[repr(i32)]pub enum DataDirection {
None = -1,
ToDevice = -2,
FromDevice = -3,
ToFromDevice = -4,
Unknown = -5,
}Variants§
None = -1
e.g. a SCSI Test Unit Ready command
ToDevice = -2
e.g. a SCSI WRITE command
FromDevice = -3
e.g. a SCSI READ command
ToFromDevice = -4
treated like FromDevice with the additional property than during indirect IO the user buffer is copied into the kernel buffers before the transfer
Unknown = -5
Trait Implementations§
Source§impl Clone for DataDirection
impl Clone for DataDirection
Source§fn clone(&self) -> DataDirection
fn clone(&self) -> DataDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<DataDirection> for c_int
impl From<DataDirection> for c_int
Source§fn from(value: DataDirection) -> Self
fn from(value: DataDirection) -> Self
Converts to this type from the input type.
impl Copy for DataDirection
Auto Trait Implementations§
impl Freeze for DataDirection
impl RefUnwindSafe for DataDirection
impl Send for DataDirection
impl Sync for DataDirection
impl Unpin for DataDirection
impl UnwindSafe for DataDirection
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