scsi_defs

Struct ScsiOp

Source
#[repr(transparent)]
pub struct ScsiOp(pub u8);

Tuple Fields§

§0: u8

Implementations§

Source§

impl ScsiOp

Source

pub const TEST_UNIT_READY: ScsiOp

Source

pub const REZERO_UNIT: ScsiOp

Source

pub const REWIND: ScsiOp

Source

pub const REQUEST_BLOCK_ADDR: ScsiOp

Source

pub const REQUEST_SENSE: ScsiOp

Source

pub const FORMAT_UNIT: ScsiOp

Source

pub const READ_BLOCK_LIMITS: ScsiOp

Source

pub const REASSIGN_BLOCKS: ScsiOp

Source

pub const INIT_ELEMENT_STATUS: ScsiOp

Source

pub const READ6: ScsiOp

Source

pub const RECEIVE: ScsiOp

Source

pub const WRITE6: ScsiOp

Source

pub const PRINT: ScsiOp

Source

pub const SEND: ScsiOp

Source

pub const SEEK6: ScsiOp

Source

pub const TRACK_SELECT: ScsiOp

Source

pub const SLEW_PRINT: ScsiOp

Source

pub const SET_CAPACITY: ScsiOp

Source

pub const SEEK_BLOCK: ScsiOp

Source

pub const PARTITION: ScsiOp

Source

pub const READ_REVERSE: ScsiOp

Source

pub const WRITE_FILEMARKS: ScsiOp

Source

pub const FLUSH_BUFFER: ScsiOp

Source

pub const SPACE: ScsiOp

Source

pub const INQUIRY: ScsiOp

Source

pub const VERIFY6: ScsiOp

Source

pub const RECOVER_BUF_DATA: ScsiOp

Source

pub const MODE_SELECT: ScsiOp

Source

pub const RESERVE_UNIT: ScsiOp

Source

pub const RELEASE_UNIT: ScsiOp

Source

pub const COPY: ScsiOp

Source

pub const ERASE: ScsiOp

Source

pub const MODE_SENSE: ScsiOp

Source

pub const START_STOP_UNIT: ScsiOp

Source

pub const STOP_PRINT: ScsiOp

Source

pub const LOAD_UNLOAD: ScsiOp

Source

pub const RECEIVE_DIAGNOSTIC: ScsiOp

Source

pub const SEND_DIAGNOSTIC: ScsiOp

Source

pub const MEDIUM_REMOVAL: ScsiOp

Source

pub const READ_FORMATTED_CAPACITY: ScsiOp

Source

pub const READ_CAPACITY: ScsiOp

Source

pub const READ: ScsiOp

Source

pub const WRITE: ScsiOp

Source

pub const SEEK: ScsiOp

Source

pub const LOCATE: ScsiOp

Source

pub const POSITION_TO_ELEMENT: ScsiOp

Source

pub const WRITE_VERIFY: ScsiOp

Source

pub const VERIFY: ScsiOp

Source

pub const SEARCH_DATA_HIGH: ScsiOp

Source

pub const SEARCH_DATA_EQUAL: ScsiOp

Source

pub const SEARCH_DATA_LOW: ScsiOp

Source

pub const SET_LIMITS: ScsiOp

Source

pub const READ_POSITION: ScsiOp

Source

pub const SYNCHRONIZE_CACHE: ScsiOp

Source

pub const COMPARE: ScsiOp

Source

pub const COPY_COMPARE: ScsiOp

Source

pub const WRITE_DATA_BUFF: ScsiOp

Source

pub const READ_DATA_BUFF: ScsiOp

Source

pub const WRITE_LONG: ScsiOp

Source

pub const CHANGE_DEFINITION: ScsiOp

Source

pub const WRITE_SAME: ScsiOp

Source

pub const READ_SUB_CHANNEL: ScsiOp

Source

pub const UNMAP: ScsiOp

Source

pub const READ_TOC: ScsiOp

Source

pub const READ_HEADER: ScsiOp

Source

pub const REPORT_DENSITY_SUPPORT: ScsiOp

Source

pub const PLAY_AUDIO: ScsiOp

Source

pub const GET_CONFIGURATION: ScsiOp

Source

pub const PLAY_AUDIO_MSF: ScsiOp

Source

pub const PLAY_TRACK_INDEX: ScsiOp

Source

pub const SANITIZE: ScsiOp

Source

pub const PLAY_TRACK_RELATIVE: ScsiOp

Source

pub const GET_EVENT_STATUS: ScsiOp

Source

pub const PAUSE_RESUME: ScsiOp

Source

pub const LOG_SELECT: ScsiOp

Source

pub const LOG_SENSE: ScsiOp

Source

pub const STOP_PLAY_SCAN: ScsiOp

Source

pub const XDWRITE: ScsiOp

Source

pub const XPWRITE: ScsiOp

Source

pub const READ_DISC_INFORMATION: ScsiOp

Source

pub const READ_TRACK_INFORMATION: ScsiOp

Source

pub const XDWRITE_READ: ScsiOp

Source

pub const RESERVE_TRACK_RZONE: ScsiOp

Source

pub const SEND_OPC_INFORMATION: ScsiOp

Source

pub const MODE_SELECT10: ScsiOp

Source

pub const RESERVE_UNIT10: ScsiOp

Source

pub const RESERVE_ELEMENT: ScsiOp

Source

pub const RELEASE_UNIT10: ScsiOp

Source

pub const RELEASE_ELEMENT: ScsiOp

Source

pub const REPAIR_TRACK: ScsiOp

Source

pub const MODE_SENSE10: ScsiOp

Source

pub const CLOSE_TRACK_SESSION: ScsiOp

Source

pub const READ_BUFFER_CAPACITY: ScsiOp

Source

pub const SEND_CUE_SHEET: ScsiOp

Source

pub const PERSISTENT_RESERVE_IN: ScsiOp

Source

pub const PERSISTENT_RESERVE_OUT: ScsiOp

Source

pub const REPORT_LUNS: ScsiOp

Source

pub const BLANK: ScsiOp

Source

pub const ATA_PASSTHROUGH12: ScsiOp

Source

pub const SEND_EVENT: ScsiOp

Source

pub const SECURITY_PROTOCOL_IN: ScsiOp

Source

pub const SEND_KEY: ScsiOp

Source

pub const MAINTENANCE_IN: ScsiOp

Source

pub const REPORT_KEY: ScsiOp

Source

pub const MAINTENANCE_OUT: ScsiOp

Source

pub const MOVE_MEDIUM: ScsiOp

Source

pub const LOAD_UNLOAD_SLOT: ScsiOp

Source

pub const EXCHANGE_MEDIUM: ScsiOp

Source

pub const SET_READ_AHEAD: ScsiOp

Source

pub const MOVE_MEDIUM_ATTACHED: ScsiOp

Source

pub const READ12: ScsiOp

Source

pub const GET_MESSAGE: ScsiOp

Source

pub const SERVICE_ACTION_OUT12: ScsiOp

Source

pub const WRITE12: ScsiOp

Source

pub const SEND_MESSAGE: ScsiOp

Source

pub const SERVICE_ACTION_IN12: ScsiOp

Source

pub const GET_PERFORMANCE: ScsiOp

Source

pub const READ_DVD_STRUCTURE: ScsiOp

Source

pub const WRITE_VERIFY12: ScsiOp

Source

pub const VERIFY12: ScsiOp

Source

pub const SEARCH_DATA_HIGH12: ScsiOp

Source

pub const SEARCH_DATA_EQUAL12: ScsiOp

Source

pub const SEARCH_DATA_LOW12: ScsiOp

Source

pub const SET_LIMITS12: ScsiOp

Source

pub const READ_ELEMENT_STATUS_ATTACHED: ScsiOp

Source

pub const REQUEST_VOL_ELEMENT: ScsiOp

Source

pub const SECURITY_PROTOCOL_OUT: ScsiOp

Source

pub const SEND_VOLUME_TAG: ScsiOp

Source

pub const SET_STREAMING: ScsiOp

Source

pub const READ_DEFECT_DATA: ScsiOp

Source

pub const READ_ELEMENT_STATUS: ScsiOp

Source

pub const READ_CD_MSF: ScsiOp

Source

pub const SCAN_CD: ScsiOp

Source

pub const REDUNDANCY_GROUP_IN: ScsiOp

Source

pub const SET_CD_SPEED: ScsiOp

Source

pub const REDUNDANCY_GROUP_OUT: ScsiOp

Source

pub const PLAY_CD: ScsiOp

Source

pub const SPARE_IN: ScsiOp

Source

pub const MECHANISM_STATUS: ScsiOp

Source

pub const SPARE_OUT: ScsiOp

Source

pub const READ_CD: ScsiOp

Source

pub const VOLUME_SET_IN: ScsiOp

Source

pub const SEND_DVD_STRUCTURE: ScsiOp

Source

pub const VOLUME_SET_OUT: ScsiOp

Source

pub const INIT_ELEMENT_RANGE: ScsiOp

Source

pub const XDWRITE_EXTENDED16: ScsiOp

Source

pub const WRITE_FILEMARKS16: ScsiOp

Source

pub const REBUILD16: ScsiOp

Source

pub const READ_REVERSE16: ScsiOp

Source

pub const REGENERATE16: ScsiOp

Source

pub const EXTENDED_COPY: ScsiOp

Source

pub const POPULATE_TOKEN: ScsiOp

Source

pub const WRITE_USING_TOKEN: ScsiOp

Source

pub const RECEIVE_COPY_RESULTS: ScsiOp

Source

pub const RECEIVE_ROD_TOKEN_INFORMATION: ScsiOp

Source

pub const ATA_PASSTHROUGH16: ScsiOp

Source

pub const ACCESS_CONTROL_IN: ScsiOp

Source

pub const ACCESS_CONTROL_OUT: ScsiOp

Source

pub const READ16: ScsiOp

Source

pub const COMPARE_AND_WRITE: ScsiOp

Source

pub const WRITE16: ScsiOp

Source

pub const READ_ATTRIBUTES: ScsiOp

Source

pub const WRITE_ATTRIBUTES: ScsiOp

Source

pub const WRITE_VERIFY16: ScsiOp

Source

pub const VERIFY16: ScsiOp

Source

pub const PREFETCH16: ScsiOp

Source

pub const SYNCHRONIZE_CACHE16: ScsiOp

Source

pub const SPACE16: ScsiOp

Source

pub const LOCK_UNLOCK_CACHE16: ScsiOp

Source

pub const LOCATE16: ScsiOp

Source

pub const WRITE_SAME16: ScsiOp

Source

pub const ERASE16: ScsiOp

Source

pub const ZBC_OUT: ScsiOp

Source

pub const ZBC_IN: ScsiOp

Source

pub const READ_DATA_BUFF16: ScsiOp

Source

pub const READ_CAPACITY16: ScsiOp

Source

pub const GET_LBA_STATUS: ScsiOp

Source

pub const GET_PHYSICAL_ELEMENT_STATUS: ScsiOp

Source

pub const REMOVE_ELEMENT_AND_TRUNCATE: ScsiOp

Source

pub const SERVICE_ACTION_IN16: ScsiOp

Source

pub const SERVICE_ACTION_OUT16: ScsiOp

Trait Implementations§

Source§

impl Clone for ScsiOp

Source§

fn clone(&self) -> ScsiOp

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScsiOp

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromBytes for ScsiOp
where u8: FromBytes,

§

fn ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the given source as a &Self. Read more
§

fn ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the prefix of the given source as a &Self without copying. Read more
§

fn ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: Immutable + KnownLayout,

Interprets the suffix of the given bytes as a &Self. Read more
§

fn mut_from_bytes( source: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the given source as a &mut Self. Read more
§

fn mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the prefix of the given source as a &mut Self without copying. Read more
§

fn mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the suffix of the given source as a &mut Self without copying. Read more
§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
Source§

impl FromZeros for ScsiOp
where u8: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
§

fn new_box_zeroed() -> Result<Box<Self>, AllocError>
where Self: Sized,

Creates a Box<Self> from zeroed bytes. Read more
§

fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>
where Self: Sized,

Creates a Vec<Self> from zeroed bytes. Read more
§

fn extend_vec_zeroed( v: &mut Vec<Self>, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Extends a Vec<Self> by pushing additional new items onto the end of the vector. The new items are initialized with zeros.
§

fn insert_vec_zeroed( v: &mut Vec<Self>, position: usize, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Inserts additional new items into Vec<Self> at position. The new items are initialized with zeros. Read more
Source§

impl Hash for ScsiOp

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoBytes for ScsiOp
where u8: IntoBytes,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn as_mut_bytes(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for ScsiOp
where Self: Sized,

Source§

type PointerMetadata = ()

The type of metadata stored in a pointer to Self. Read more
Source§

impl Ord for ScsiOp

Source§

fn cmp(&self, other: &ScsiOp) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ScsiOp

Source§

fn eq(&self, other: &ScsiOp) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ScsiOp

Source§

fn partial_cmp(&self, other: &ScsiOp) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFromBytes for ScsiOp
where u8: TryFromBytes,

§

fn try_ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the given source as a &Self. Read more
§

fn try_ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the prefix of the given source as a &Self. Read more
§

fn try_ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the suffix of the given source as a &Self. Read more
§

fn try_mut_from_bytes( bytes: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the given source as a &mut Self without copying. Read more
§

fn try_mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self. Read more
§

fn try_mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self. Read more
§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
Source§

impl Copy for ScsiOp

Source§

impl Eq for ScsiOp

Source§

impl Immutable for ScsiOp
where u8: Immutable,

Source§

impl StructuralPartialEq for ScsiOp

Auto Trait Implementations§

§

impl Freeze for ScsiOp

§

impl RefUnwindSafe for ScsiOp

§

impl Send for ScsiOp

§

impl Sync for ScsiOp

§

impl Unpin for ScsiOp

§

impl UnwindSafe for ScsiOp

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.