pub struct Nsfeat(/* private fields */);
Implementations§
Source§impl Nsfeat
impl Nsfeat
Sourcepub const fn with_thinp_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_thinp_checked(self, value: bool) -> Result<Self, ()>
Thin provisioning
Bits: 0..1
Sourcepub const fn with_thinp(self, value: bool) -> Self
pub const fn with_thinp(self, value: bool) -> Self
Thin provisioning
Bits: 0..1
Sourcepub const fn set_thinp_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_thinp_checked(&mut self, value: bool) -> Result<(), ()>
Thin provisioning
Bits: 0..1
Sourcepub const fn with_nsabp_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_nsabp_checked(self, value: bool) -> Result<Self, ()>
NAWUN, NAWUPF, NACWU are defined.
Bits: 1..2
Sourcepub const fn with_nsabp(self, value: bool) -> Self
pub const fn with_nsabp(self, value: bool) -> Self
NAWUN, NAWUPF, NACWU are defined.
Bits: 1..2
Sourcepub const fn set_nsabp_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_nsabp_checked(&mut self, value: bool) -> Result<(), ()>
NAWUN, NAWUPF, NACWU are defined.
Bits: 1..2
Sourcepub const fn dae(&self) -> bool
pub const fn dae(&self) -> bool
Namespace supports deallocated or unwritten logical block error.
Bits: 2..3
Sourcepub const fn with_dae_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dae_checked(self, value: bool) -> Result<Self, ()>
Namespace supports deallocated or unwritten logical block error.
Bits: 2..3
Sourcepub const fn with_dae(self, value: bool) -> Self
pub const fn with_dae(self, value: bool) -> Self
Namespace supports deallocated or unwritten logical block error.
Bits: 2..3
Sourcepub const fn set_dae(&mut self, value: bool)
pub const fn set_dae(&mut self, value: bool)
Namespace supports deallocated or unwritten logical block error.
Bits: 2..3
Sourcepub const fn set_dae_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_dae_checked(&mut self, value: bool) -> Result<(), ()>
Namespace supports deallocated or unwritten logical block error.
Bits: 2..3
Sourcepub const fn with_uidreuse_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_uidreuse_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_uidreuse(self, value: bool) -> Self
pub const fn with_uidreuse(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_uidreuse(&mut self, value: bool)
pub const fn set_uidreuse(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn optperf(&self) -> bool
pub const fn optperf(&self) -> bool
NPWG, NPWA, NPDG, NPDA, and NOWS are defined for this namespace.
Bits: 4..5
Sourcepub const fn with_optperf_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_optperf_checked(self, value: bool) -> Result<Self, ()>
NPWG, NPWA, NPDG, NPDA, and NOWS are defined for this namespace.
Bits: 4..5
Sourcepub const fn with_optperf(self, value: bool) -> Self
pub const fn with_optperf(self, value: bool) -> Self
NPWG, NPWA, NPDG, NPDA, and NOWS are defined for this namespace.
Bits: 4..5
Sourcepub const fn set_optperf(&mut self, value: bool)
pub const fn set_optperf(&mut self, value: bool)
NPWG, NPWA, NPDG, NPDA, and NOWS are defined for this namespace.
Bits: 4..5
Trait Implementations§
Source§impl FromBytes for Nsfeatwhere
u8: FromBytes,
impl FromBytes for Nsfeatwhere
u8: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&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,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§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,
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,
§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,
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,
Source§impl FromZeros for Nsfeatwhere
u8: FromZeros,
impl FromZeros for Nsfeatwhere
u8: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self>
from zeroed bytes. Read moreSource§impl IntoBytes for Nsfeatwhere
u8: IntoBytes,
impl IntoBytes for Nsfeatwhere
u8: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for Nsfeatwhere
Self: Sized,
impl KnownLayout for Nsfeatwhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read more