#[repr(u8)]pub enum ResponseCode {
CommandCompleted = 0,
TargetFailure = 1,
VendorSpecific(u8),
Reserved(u8),
}Expand description
The 1-byte “Response” field in a SCSI Response PDU (RFC 7143 § 11.4.3)
Variants§
CommandCompleted = 0
0x00 – Command Completed at Target
TargetFailure = 1
0x01 – Target Failure
VendorSpecific(u8)
0x80–0xFF – Vendor‐specific
Reserved(u8)
0x02–0x7F (excluding 0x01) and 0x02–0x7F – reserved by the spec
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseCode
impl Debug for ResponseCode
impl Eq for ResponseCode
Source§impl From<&ResponseCode> for u8
impl From<&ResponseCode> for u8
Source§fn from(value: &ResponseCode) -> Self
fn from(value: &ResponseCode) -> Self
Converts to this type from the input type.
Source§impl From<ResponseCode> for RawResponseCode
impl From<ResponseCode> for RawResponseCode
Source§fn from(rc: ResponseCode) -> Self
fn from(rc: ResponseCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§fn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseCode
Source§impl TryFrom<RawResponseCode> for ResponseCode
impl TryFrom<RawResponseCode> for ResponseCode
Source§type Error = UnknownResponseCode
type Error = UnknownResponseCode
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnsafeUnpin for ResponseCode
impl UnwindSafe for ResponseCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.