Struct NdisConfigCapabilities
pub struct NdisConfigCapabilities(/* private fields */);Implementations§
§impl NdisConfigCapabilities
impl NdisConfigCapabilities
pub const fn new() -> NdisConfigCapabilities
pub const fn new() -> NdisConfigCapabilities
Creates a new default initialized bitfield.
pub const fn from_bits(bits: u64) -> NdisConfigCapabilities
pub const fn from_bits(bits: u64) -> NdisConfigCapabilities
Convert from bits.
pub const fn with_vmq_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_vmq_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 0..1
pub const fn with_vmq(self, value: bool) -> NdisConfigCapabilities
pub const fn with_vmq(self, value: bool) -> NdisConfigCapabilities
Bits: 0..1
pub const fn set_vmq_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_vmq_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 0..1
pub const fn with_chimney_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_chimney_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 1..2
pub const fn with_chimney(self, value: bool) -> NdisConfigCapabilities
pub const fn with_chimney(self, value: bool) -> NdisConfigCapabilities
Bits: 1..2
pub const fn set_chimney(&mut self, value: bool)
pub const fn set_chimney(&mut self, value: bool)
Bits: 1..2
pub const fn set_chimney_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_chimney_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 1..2
pub const fn with_sriov_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_sriov_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 2..3
pub const fn with_sriov(self, value: bool) -> NdisConfigCapabilities
pub const fn with_sriov(self, value: bool) -> NdisConfigCapabilities
Bits: 2..3
pub const fn set_sriov_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_sriov_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 2..3
pub const fn ieee_8021_q(&self) -> bool
pub const fn ieee_8021_q(&self) -> bool
Bits: 3..4
pub const fn with_ieee_8021_q_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_ieee_8021_q_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 3..4
pub const fn with_ieee_8021_q(self, value: bool) -> NdisConfigCapabilities
pub const fn with_ieee_8021_q(self, value: bool) -> NdisConfigCapabilities
Bits: 3..4
pub const fn set_ieee_8021_q(&mut self, value: bool)
pub const fn set_ieee_8021_q(&mut self, value: bool)
Bits: 3..4
pub const fn set_ieee_8021_q_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_ieee_8021_q_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 3..4
pub const fn correlation_id(&self) -> bool
pub const fn correlation_id(&self) -> bool
Bits: 4..5
pub const fn with_correlation_id_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_correlation_id_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 4..5
pub const fn with_correlation_id(self, value: bool) -> NdisConfigCapabilities
pub const fn with_correlation_id(self, value: bool) -> NdisConfigCapabilities
Bits: 4..5
pub const fn set_correlation_id(&mut self, value: bool)
pub const fn set_correlation_id(&mut self, value: bool)
Bits: 4..5
pub const fn set_correlation_id_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_correlation_id_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 4..5
pub const fn with_teaming_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_teaming_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 5..6
pub const fn with_teaming(self, value: bool) -> NdisConfigCapabilities
pub const fn with_teaming(self, value: bool) -> NdisConfigCapabilities
Bits: 5..6
pub const fn set_teaming(&mut self, value: bool)
pub const fn set_teaming(&mut self, value: bool)
Bits: 5..6
pub const fn set_teaming_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_teaming_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 5..6
pub const fn virtual_subnet_id(&self) -> bool
pub const fn virtual_subnet_id(&self) -> bool
Bits: 6..7
pub const fn with_virtual_subnet_id_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_virtual_subnet_id_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 6..7
pub const fn with_virtual_subnet_id(self, value: bool) -> NdisConfigCapabilities
pub const fn with_virtual_subnet_id(self, value: bool) -> NdisConfigCapabilities
Bits: 6..7
pub const fn set_virtual_subnet_id(&mut self, value: bool)
pub const fn set_virtual_subnet_id(&mut self, value: bool)
Bits: 6..7
pub const fn set_virtual_subnet_id_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_virtual_subnet_id_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 6..7
pub const fn rsc_over_vmbus(&self) -> bool
pub const fn rsc_over_vmbus(&self) -> bool
Bits: 7..8
pub const fn with_rsc_over_vmbus_checked(
self,
value: bool,
) -> Result<NdisConfigCapabilities, ()>
pub const fn with_rsc_over_vmbus_checked( self, value: bool, ) -> Result<NdisConfigCapabilities, ()>
Bits: 7..8
pub const fn with_rsc_over_vmbus(self, value: bool) -> NdisConfigCapabilities
pub const fn with_rsc_over_vmbus(self, value: bool) -> NdisConfigCapabilities
Bits: 7..8
pub const fn set_rsc_over_vmbus(&mut self, value: bool)
pub const fn set_rsc_over_vmbus(&mut self, value: bool)
Bits: 7..8
pub const fn set_rsc_over_vmbus_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_rsc_over_vmbus_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 7..8
Trait Implementations§
§impl Clone for NdisConfigCapabilities
impl Clone for NdisConfigCapabilities
§fn clone(&self) -> NdisConfigCapabilities
fn clone(&self) -> NdisConfigCapabilities
Returns a duplicate 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 more§impl Debug for NdisConfigCapabilities
impl Debug for NdisConfigCapabilities
§impl Default for NdisConfigCapabilities
impl Default for NdisConfigCapabilities
§fn default() -> NdisConfigCapabilities
fn default() -> NdisConfigCapabilities
Returns the “default value” for a type. Read more
§impl From<u64> for NdisConfigCapabilities
impl From<u64> for NdisConfigCapabilities
§fn from(v: u64) -> NdisConfigCapabilities
fn from(v: u64) -> NdisConfigCapabilities
Converts to this type from the input type.
§impl FromBytes for NdisConfigCapabilitieswhere
u64: FromBytes,
impl FromBytes for NdisConfigCapabilitieswhere
u64: 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,
Interprets the suffix of the given bytes as a
&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,
§fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§impl FromZeros for NdisConfigCapabilitieswhere
u64: FromZeros,
impl FromZeros for NdisConfigCapabilitieswhere
u64: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
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,
Creates a
Box<Self> from zeroed bytes. Read more§fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>where
Self: KnownLayout<PointerMetadata = usize>,
fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>where
Self: KnownLayout<PointerMetadata = usize>,
Creates a
Box<[Self]> (a boxed slice) 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,
Creates a
Vec<Self> from zeroed bytes. Read more§impl Inspect for NdisConfigCapabilities
impl Inspect for NdisConfigCapabilities
§impl IntoBytes for NdisConfigCapabilitieswhere
u64: IntoBytes,
impl IntoBytes for NdisConfigCapabilitieswhere
u64: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§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,
§impl KnownLayout for NdisConfigCapabilitieswhere
NdisConfigCapabilities: Sized,
impl KnownLayout for NdisConfigCapabilitieswhere
NdisConfigCapabilities: Sized,
§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self with the given pointer
metadata. Read more§impl TryFromBytes for NdisConfigCapabilitieswhere
u64: TryFromBytes,
impl TryFromBytes for NdisConfigCapabilitieswhere
u64: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the prefix of the given
source as a &Self with
a DST length equal to count. Read more§fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the suffix of the given
source as a &Self with
a DST length equal to count. Read more§fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
§fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the prefix of the given
source as a &mut Self
with a DST length equal to count. Read more§fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the suffix of the given
source as a &mut Self
with a DST length equal to count. Read more§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for NdisConfigCapabilities
impl Immutable for NdisConfigCapabilitieswhere
u64: Immutable,
Auto Trait Implementations§
impl Freeze for NdisConfigCapabilities
impl RefUnwindSafe for NdisConfigCapabilities
impl Send for NdisConfigCapabilities
impl Sync for NdisConfigCapabilities
impl Unpin for NdisConfigCapabilities
impl UnsafeUnpin for NdisConfigCapabilities
impl UnwindSafe for NdisConfigCapabilities
Blanket Implementations§
§impl<T> AsAtomicBytes for Twhere
T: IntoBytes + FromBytes + Immutable + KnownLayout + ?Sized,
impl<T> AsAtomicBytes for Twhere
T: IntoBytes + FromBytes + Immutable + KnownLayout + ?Sized,
§fn as_atomic_bytes(&mut self) -> &[AtomicU8]
fn as_atomic_bytes(&mut self) -> &[AtomicU8]
Casts the type to a slice of atomic bytes.
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