#[repr(u8)]pub enum IscsiOpcode {
Show 13 variants
NopOut = 0,
ScsiCommand = 1,
LoginReq = 3,
TextReq = 4,
DataOut = 5,
Logout = 6,
NopIn = 32,
ScsiResponse = 33,
LoginResp = 35,
TextResp = 36,
DataIn = 37,
LogoutResp = 38,
Reject = 63,
}Expand description
iSCSI PDU opcodes (RFC 7143 Section 11.1).
Variants§
NopOut = 0
ScsiCommand = 1
LoginReq = 3
TextReq = 4
DataOut = 5
Logout = 6
NopIn = 32
ScsiResponse = 33
LoginResp = 35
TextResp = 36
DataIn = 37
LogoutResp = 38
Reject = 63
Implementations§
Source§impl IscsiOpcode
impl IscsiOpcode
Sourcepub fn is_initiator(&self) -> bool
pub fn is_initiator(&self) -> bool
Whether this is an initiator opcode (bit 5 clear).
Trait Implementations§
Source§impl Clone for IscsiOpcode
impl Clone for IscsiOpcode
Source§fn clone(&self) -> IscsiOpcode
fn clone(&self) -> IscsiOpcode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IscsiOpcode
impl Debug for IscsiOpcode
Source§impl PartialEq for IscsiOpcode
impl PartialEq for IscsiOpcode
impl Copy for IscsiOpcode
impl Eq for IscsiOpcode
impl StructuralPartialEq for IscsiOpcode
Auto Trait Implementations§
impl Freeze for IscsiOpcode
impl RefUnwindSafe for IscsiOpcode
impl Send for IscsiOpcode
impl Sync for IscsiOpcode
impl Unpin for IscsiOpcode
impl UnwindSafe for IscsiOpcode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)