pub struct PassthruArgs<'a> {}Expand description
Parameters for Controller::admin_passthru / Controller::io_passthru.
Mirrors libnvme’s procedural-style passthru API: every command-dword
is exposed verbatim. Use PassthruArgs::default then set only the
dwords you need.
data (and metadata, where supported) are filled in by reference
to byte buffers; their _len parameters are derived automatically from
the slice lengths.
Fields§
§opcode: u8§flags: u8§rsvd: u16§nsid: u32§cdw2: u32§cdw3: u32§cdw10: u32§cdw11: u32§cdw12: u32§cdw13: u32§cdw14: u32§cdw15: u32§data: Option<&'a mut [u8]>§metadata: Option<&'a mut [u8]>§timeout_ms: u32Trait Implementations§
Source§impl<'a> Debug for PassthruArgs<'a>
impl<'a> Debug for PassthruArgs<'a>
Source§impl<'a> Default for PassthruArgs<'a>
impl<'a> Default for PassthruArgs<'a>
Source§fn default() -> PassthruArgs<'a>
fn default() -> PassthruArgs<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PassthruArgs<'a>
impl<'a> RefUnwindSafe for PassthruArgs<'a>
impl<'a> Send for PassthruArgs<'a>
impl<'a> Sync for PassthruArgs<'a>
impl<'a> Unpin for PassthruArgs<'a>
impl<'a> UnsafeUnpin for PassthruArgs<'a>
impl<'a> !UnwindSafe for PassthruArgs<'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