pub enum DataDir<'a> {
None,
In(&'a mut [u8]),
Out(&'a [u8]),
}Expand description
Direction and buffer for the optional data phase of a SCSI command.
Variants§
None
No data phase (e.g. TEST UNIT READY).
In(&'a mut [u8])
Device-to-host: bytes are read into buf.
Out(&'a [u8])
Host-to-device: bytes in buf are sent.
Auto Trait Implementations§
impl<'a> Freeze for DataDir<'a>
impl<'a> RefUnwindSafe for DataDir<'a>
impl<'a> Send for DataDir<'a>
impl<'a> Sync for DataDir<'a>
impl<'a> Unpin for DataDir<'a>
impl<'a> !UnwindSafe for DataDir<'a>
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