#[repr(C, packed(1))]pub struct ModeSense6 {
opcode: u8,
dbd_field: u8,
page_control_and_page_code: u8,
subpage_code: u8,
alloc_len: u8,
control: u8,
}
Fields§
§opcode: u8
§dbd_field: u8
§page_control_and_page_code: u8
§subpage_code: u8
§alloc_len: u8
§control: u8
Implementations§
source§impl ModeSense6
impl ModeSense6
fn alloc_len(&self) -> usize
fn disable_block_desc(&self) -> bool
fn page_code(&self) -> u8
fn page_control(&self) -> Result<PageControl, ExecuteError>
fn subpage_code(&self) -> u8
fn emulate( &self, writer: &mut Writer, dev: &AsyncLogicalUnit ) -> Result<(), ExecuteError>
fn add_all_page_codes( subpage_code: u8, page_control: PageControl, outbuf: &mut [u8], idx: &mut u8 )
Trait Implementations§
source§impl AsBytes for ModeSense6where
u8: AsBytes,
impl AsBytes for ModeSense6where
u8: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for ModeSense6
impl Clone for ModeSense6
source§fn clone(&self) -> ModeSense6
fn clone(&self) -> ModeSense6
Returns a copy of the value. Read more
1.0.0 · 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 ModeSense6
impl Debug for ModeSense6
source§impl Default for ModeSense6
impl Default for ModeSense6
source§fn default() -> ModeSense6
fn default() -> ModeSense6
Returns the “default value” for a type. Read more
source§impl FromBytes for ModeSense6where
u8: FromBytes,
impl FromBytes for ModeSense6where
u8: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for ModeSense6where
u8: FromZeroes,
impl FromZeroes for ModeSense6where
u8: FromZeroes,
source§impl PartialEq for ModeSense6
impl PartialEq for ModeSense6
source§fn eq(&self, other: &ModeSense6) -> bool
fn eq(&self, other: &ModeSense6) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ModeSense6
impl Eq for ModeSense6
impl StructuralPartialEq for ModeSense6
Auto Trait Implementations§
impl RefUnwindSafe for ModeSense6
impl Send for ModeSense6
impl Sync for ModeSense6
impl Unpin for ModeSense6
impl UnwindSafe for ModeSense6
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.