pub struct TioMsgMmioValidateReqFlags(/* private fields */);Expand description
See TIO_MSG_MMIO_VALIDATE_REQ in Table 63, “SEV-TIO Firmware Interface Specification”, Revision 0.91.
Implementations§
Source§impl TioMsgMmioValidateReqFlags
impl TioMsgMmioValidateReqFlags
Sourcepub const fn validated(&self) -> bool
pub const fn validated(&self) -> bool
Desired value to set RMP. Validated for the range.
Bits: 0..1
Sourcepub const fn with_validated_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_validated_checked(self, value: bool) -> Result<Self, ()>
Desired value to set RMP. Validated for the range.
Bits: 0..1
Sourcepub const fn with_validated(self, value: bool) -> Self
pub const fn with_validated(self, value: bool) -> Self
Desired value to set RMP. Validated for the range.
Bits: 0..1
Sourcepub const fn set_validated(&mut self, value: bool)
pub const fn set_validated(&mut self, value: bool)
Desired value to set RMP. Validated for the range.
Bits: 0..1
Sourcepub const fn set_validated_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_validated_checked(&mut self, value: bool) -> Result<(), ()>
Desired value to set RMP. Validated for the range.
Bits: 0..1
Sourcepub const fn force_validated(&self) -> bool
pub const fn force_validated(&self) -> bool
0: If subrange does not have RMP. Validated set uniformly, fail. 1: If subrange does not have RMP. Validated set uniformly, force to requested value.
Bits: 1..2
Sourcepub const fn with_force_validated_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_force_validated_checked(self, value: bool) -> Result<Self, ()>
0: If subrange does not have RMP. Validated set uniformly, fail. 1: If subrange does not have RMP. Validated set uniformly, force to requested value.
Bits: 1..2
Sourcepub const fn with_force_validated(self, value: bool) -> Self
pub const fn with_force_validated(self, value: bool) -> Self
0: If subrange does not have RMP. Validated set uniformly, fail. 1: If subrange does not have RMP. Validated set uniformly, force to requested value.
Bits: 1..2
Sourcepub const fn set_force_validated(&mut self, value: bool)
pub const fn set_force_validated(&mut self, value: bool)
0: If subrange does not have RMP. Validated set uniformly, fail. 1: If subrange does not have RMP. Validated set uniformly, force to requested value.
Bits: 1..2
Trait Implementations§
Source§impl Clone for TioMsgMmioValidateReqFlags
impl Clone for TioMsgMmioValidateReqFlags
Source§fn clone(&self) -> TioMsgMmioValidateReqFlags
fn clone(&self) -> TioMsgMmioValidateReqFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TioMsgMmioValidateReqFlags
impl Debug for TioMsgMmioValidateReqFlags
Source§impl Default for TioMsgMmioValidateReqFlags
impl Default for TioMsgMmioValidateReqFlags
Source§impl From<TioMsgMmioValidateReqFlags> for u16
impl From<TioMsgMmioValidateReqFlags> for u16
Source§fn from(v: TioMsgMmioValidateReqFlags) -> u16
fn from(v: TioMsgMmioValidateReqFlags) -> u16
Source§impl From<u16> for TioMsgMmioValidateReqFlags
impl From<u16> for TioMsgMmioValidateReqFlags
Source§impl FromBytes for TioMsgMmioValidateReqFlagswhere
u16: FromBytes,
impl FromBytes for TioMsgMmioValidateReqFlagswhere
u16: 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 TioMsgMmioValidateReqFlagswhere
u16: FromZeros,
impl FromZeros for TioMsgMmioValidateReqFlagswhere
u16: 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 TioMsgMmioValidateReqFlagswhere
u16: IntoBytes,
impl IntoBytes for TioMsgMmioValidateReqFlagswhere
u16: 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 TioMsgMmioValidateReqFlagswhere
Self: Sized,
impl KnownLayout for TioMsgMmioValidateReqFlagswhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Self with the given pointer
metadata. Read more