pub struct TioMsgMmioConfigRspFlags(/* private fields */);Expand description
See TIO_MSG_MMIO_CONFIG_RSP flags in Table 66, “SEV-TIO Firmware Interface Specification”, Revision 0.91.
Implementations§
Source§impl TioMsgMmioConfigRspFlags
impl TioMsgMmioConfigRspFlags
Sourcepub const fn msix_table(&self) -> bool
pub const fn msix_table(&self) -> bool
Indicates if the range maps MSI-X table.
Bits: 0..1
Sourcepub const fn with_msix_table_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_msix_table_checked(self, value: bool) -> Result<Self, ()>
Indicates if the range maps MSI-X table.
Bits: 0..1
Sourcepub const fn with_msix_table(self, value: bool) -> Self
pub const fn with_msix_table(self, value: bool) -> Self
Indicates if the range maps MSI-X table.
Bits: 0..1
Sourcepub const fn set_msix_table(&mut self, value: bool)
pub const fn set_msix_table(&mut self, value: bool)
Indicates if the range maps MSI-X table.
Bits: 0..1
Sourcepub const fn set_msix_table_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_msix_table_checked(&mut self, value: bool) -> Result<(), ()>
Indicates if the range maps MSI-X table.
Bits: 0..1
Sourcepub const fn with_msix_pba_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_msix_pba_checked(self, value: bool) -> Result<Self, ()>
Indicates if this range maps MSI-X PBA.
Bits: 1..2
Sourcepub const fn with_msix_pba(self, value: bool) -> Self
pub const fn with_msix_pba(self, value: bool) -> Self
Indicates if this range maps MSI-X PBA.
Bits: 1..2
Sourcepub const fn set_msix_pba(&mut self, value: bool)
pub const fn set_msix_pba(&mut self, value: bool)
Indicates if this range maps MSI-X PBA.
Bits: 1..2
Sourcepub const fn set_msix_pba_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_msix_pba_checked(&mut self, value: bool) -> Result<(), ()>
Indicates if this range maps MSI-X PBA.
Bits: 1..2
Sourcepub const fn non_tee_mem(&self) -> bool
pub const fn non_tee_mem(&self) -> bool
Indicates if the range can be mapped into either guest private memory or shared memory.
Bits: 2..3
Sourcepub const fn with_non_tee_mem_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_non_tee_mem_checked(self, value: bool) -> Result<Self, ()>
Indicates if the range can be mapped into either guest private memory or shared memory.
Bits: 2..3
Sourcepub const fn with_non_tee_mem(self, value: bool) -> Self
pub const fn with_non_tee_mem(self, value: bool) -> Self
Indicates if the range can be mapped into either guest private memory or shared memory.
Bits: 2..3
Sourcepub const fn set_non_tee_mem(&mut self, value: bool)
pub const fn set_non_tee_mem(&mut self, value: bool)
Indicates if the range can be mapped into either guest private memory or shared memory.
Bits: 2..3
Sourcepub const fn set_non_tee_mem_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_non_tee_mem_checked(&mut self, value: bool) -> Result<(), ()>
Indicates if the range can be mapped into either guest private memory or shared memory.
Bits: 2..3
Sourcepub const fn mem_attr_updateable(&self) -> bool
pub const fn mem_attr_updateable(&self) -> bool
Indicates if certain TDISP flags can be updated.
Bits: 3..4
Sourcepub const fn with_mem_attr_updateable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_mem_attr_updateable_checked( self, value: bool, ) -> Result<Self, ()>
Indicates if certain TDISP flags can be updated.
Bits: 3..4
Sourcepub const fn with_mem_attr_updateable(self, value: bool) -> Self
pub const fn with_mem_attr_updateable(self, value: bool) -> Self
Indicates if certain TDISP flags can be updated.
Bits: 3..4
Sourcepub const fn set_mem_attr_updateable(&mut self, value: bool)
pub const fn set_mem_attr_updateable(&mut self, value: bool)
Indicates if certain TDISP flags can be updated.
Bits: 3..4
Trait Implementations§
Source§impl Clone for TioMsgMmioConfigRspFlags
impl Clone for TioMsgMmioConfigRspFlags
Source§fn clone(&self) -> TioMsgMmioConfigRspFlags
fn clone(&self) -> TioMsgMmioConfigRspFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TioMsgMmioConfigRspFlags
impl Debug for TioMsgMmioConfigRspFlags
Source§impl Default for TioMsgMmioConfigRspFlags
impl Default for TioMsgMmioConfigRspFlags
Source§impl From<TioMsgMmioConfigRspFlags> for u16
impl From<TioMsgMmioConfigRspFlags> for u16
Source§fn from(v: TioMsgMmioConfigRspFlags) -> u16
fn from(v: TioMsgMmioConfigRspFlags) -> u16
Source§impl From<u16> for TioMsgMmioConfigRspFlags
impl From<u16> for TioMsgMmioConfigRspFlags
Source§impl FromBytes for TioMsgMmioConfigRspFlagswhere
u16: FromBytes,
impl FromBytes for TioMsgMmioConfigRspFlagswhere
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 TioMsgMmioConfigRspFlagswhere
u16: FromZeros,
impl FromZeros for TioMsgMmioConfigRspFlagswhere
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 TioMsgMmioConfigRspFlagswhere
u16: IntoBytes,
impl IntoBytes for TioMsgMmioConfigRspFlagswhere
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 TioMsgMmioConfigRspFlagswhere
Self: Sized,
impl KnownLayout for TioMsgMmioConfigRspFlagswhere
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