[][src]Trait scsi::scsi::commands::Command

pub trait Command: BufferPushable + BufferPullable {
    fn wrapper(&self) -> CommandBlockWrapper;
fn opcode() -> u8;
fn length() -> u8; }

A trait that all SCSI commands must implement.

Required methods

fn wrapper(&self) -> CommandBlockWrapper

Returns the command block that prefaces this command struct.

fn opcode() -> u8

Returns the specific opcode of this command.

fn length() -> u8

Returns the length of the command call, usually either 6, 10, or 16.

Loading content...

Implementors

impl Command for InquiryCommand[src]

impl Command for Read10Command[src]

impl Command for ReadCapacityCommand[src]

impl Command for RequestSenseCommand[src]

impl Command for TestUnitReady[src]

impl Command for Write10Command[src]

Loading content...