pub struct Cdw12ReadWrite(/* private fields */);
Implementations§
Source§impl Cdw12ReadWrite
impl Cdw12ReadWrite
Sourcepub const fn with_nlb_z_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_nlb_z_checked(self, value: u16) -> Result<Self, ()>
Number of logical blocks. Zero-based.
Bits: 0..16
Sourcepub const fn with_nlb_z(self, value: u16) -> Self
pub const fn with_nlb_z(self, value: u16) -> Self
Number of logical blocks. Zero-based.
Bits: 0..16
Sourcepub const fn set_nlb_z(&mut self, value: u16)
pub const fn set_nlb_z(&mut self, value: u16)
Number of logical blocks. Zero-based.
Bits: 0..16
Sourcepub const fn set_nlb_z_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_nlb_z_checked(&mut self, value: u16) -> Result<(), ()>
Number of logical blocks. Zero-based.
Bits: 0..16
Sourcepub const fn with_dtype_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_dtype_checked(self, value: u8) -> Result<Self, ()>
Directive type (write only).
Bits: 20..24
Sourcepub const fn with_dtype(self, value: u8) -> Self
pub const fn with_dtype(self, value: u8) -> Self
Directive type (write only).
Bits: 20..24
Sourcepub const fn set_dtype_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_dtype_checked(&mut self, value: u8) -> Result<(), ()>
Directive type (write only).
Bits: 20..24
Sourcepub const fn with_stc_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_stc_checked(self, value: bool) -> Result<Self, ()>
Storage tag check.
Bits: 24..25
Sourcepub const fn set_stc_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_stc_checked(&mut self, value: bool) -> Result<(), ()>
Storage tag check.
Bits: 24..25
Sourcepub const fn with_prinfo_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_prinfo_checked(self, value: u8) -> Result<Self, ()>
Protection information
Bits: 26..30
Sourcepub const fn with_prinfo(self, value: u8) -> Self
pub const fn with_prinfo(self, value: u8) -> Self
Protection information
Bits: 26..30
Sourcepub const fn set_prinfo(&mut self, value: u8)
pub const fn set_prinfo(&mut self, value: u8)
Protection information
Bits: 26..30
Sourcepub const fn set_prinfo_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_prinfo_checked(&mut self, value: u8) -> Result<(), ()>
Protection information
Bits: 26..30
Sourcepub const fn with_fua_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_fua_checked(self, value: bool) -> Result<Self, ()>
Force unit access
Bits: 30..31
Sourcepub const fn set_fua_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_fua_checked(&mut self, value: bool) -> Result<(), ()>
Force unit access
Bits: 30..31
Sourcepub const fn with_lr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_lr_checked(self, value: bool) -> Result<Self, ()>
Limited retry
Bits: 31..32
Trait Implementations§
Source§impl Clone for Cdw12ReadWrite
impl Clone for Cdw12ReadWrite
Source§fn clone(&self) -> Cdw12ReadWrite
fn clone(&self) -> Cdw12ReadWrite
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 Cdw12ReadWrite
impl Debug for Cdw12ReadWrite
Source§impl Default for Cdw12ReadWrite
impl Default for Cdw12ReadWrite
Source§impl From<Cdw12ReadWrite> for u32
impl From<Cdw12ReadWrite> for u32
Source§fn from(v: Cdw12ReadWrite) -> u32
fn from(v: Cdw12ReadWrite) -> u32
Converts to this type from the input type.
Source§impl From<u32> for Cdw12ReadWrite
impl From<u32> for Cdw12ReadWrite
impl Copy for Cdw12ReadWrite
Auto Trait Implementations§
impl Freeze for Cdw12ReadWrite
impl RefUnwindSafe for Cdw12ReadWrite
impl Send for Cdw12ReadWrite
impl Sync for Cdw12ReadWrite
impl Unpin for Cdw12ReadWrite
impl UnwindSafe for Cdw12ReadWrite
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