pub fn issue_cmd_with_output <T>
      (&self, cdb: &T, buffer: &mut[u8]) -> Result <DeviceStatus, String>
    where T: Command + Output,
  {
    let mut header = Self::DEFAULT_HEADER;
    header.dxfer_direction = scsi_sg::SG_DXFER_FROM_DEV;
    header.dxfer_len = buffer.len() as u32;
    header.dxferp = buffer.as_mut_ptr() as *mut _ as *mut libc::c_void;

    self.issue_cmd_internal(cdb, header)
  }
/// Issue a command that will return data into a buffer
Issue a command that will return data into a buffer
Issue a command that will return data into a buffer
pub fn issue_cmd_with_output <T>
      (&self, cdb: &T, buffer: &mut[u8]) -> Result <DeviceStatus, String>
    where T: Command + Output,
  {
    let mut header = Self::DEFAULT_HEADER;
    header.dxfer_direction = scsi_sg::SG_DXFER_FROM_DEV;
    header.dxfer_len = buffer.len() as u32;
    header.dxferp = buffer.as_mut_ptr() as *mut _ as *mut libc::c_void;
    self.issue_cmd_internal(cdb, header)
  }
pub fn issue_cmd_with_output < T > ( & self , cdb : & T , buffer : & mut [ u8 ] ) -> Result < DeviceStatus , String > where T : Command + Output , { let mut header = Self :: DEFAULT_HEADER ; header . dxfer_direction = scsi_sg :: SG_DXFER_FROM_DEV ; header . dxfer_len = buffer . len ( ) as u32 ; header . dxferp = buffer . as_mut_ptr ( ) as * mut _ as * mut libc :: c_void ; self . issue_cmd_internal ( cdb , header ) }
Issue a command that will return data into a buffer
Issue a command that will return data into a buffer
&self
cdb
&T
buffer
&mut[u8]