pub struct TdxFunctionId(/* private fields */);Expand description
See the FUNCTION_ID table in the TDX Connect ABI EAS and [PCI-SIG, TDISP] v1.0.
Implementations§
Source§impl TdxFunctionId
impl TdxFunctionId
Sourcepub const fn requester_id(&self) -> u16
pub const fn requester_id(&self) -> u16
The PCIe requester ID (bus/device/function) of the interface.
Bits: 0..16
Sourcepub const fn with_requester_id_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_requester_id_checked(self, value: u16) -> Result<Self, ()>
The PCIe requester ID (bus/device/function) of the interface.
Bits: 0..16
Sourcepub const fn with_requester_id(self, value: u16) -> Self
pub const fn with_requester_id(self, value: u16) -> Self
The PCIe requester ID (bus/device/function) of the interface.
Bits: 0..16
Sourcepub const fn set_requester_id(&mut self, value: u16)
pub const fn set_requester_id(&mut self, value: u16)
The PCIe requester ID (bus/device/function) of the interface.
Bits: 0..16
Sourcepub const fn set_requester_id_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_requester_id_checked(&mut self, value: u16) -> Result<(), ()>
The PCIe requester ID (bus/device/function) of the interface.
Bits: 0..16
Sourcepub const fn requester_segment(&self) -> u8
pub const fn requester_segment(&self) -> u8
The requester segment. Reserved if segment_valid is clear.
Bits: 16..24
Sourcepub const fn with_requester_segment_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_requester_segment_checked(self, value: u8) -> Result<Self, ()>
The requester segment. Reserved if segment_valid is clear.
Bits: 16..24
Sourcepub const fn with_requester_segment(self, value: u8) -> Self
pub const fn with_requester_segment(self, value: u8) -> Self
The requester segment. Reserved if segment_valid is clear.
Bits: 16..24
Sourcepub const fn set_requester_segment(&mut self, value: u8)
pub const fn set_requester_segment(&mut self, value: u8)
The requester segment. Reserved if segment_valid is clear.
Bits: 16..24
Sourcepub const fn set_requester_segment_checked(
&mut self,
value: u8,
) -> Result<(), ()>
pub const fn set_requester_segment_checked( &mut self, value: u8, ) -> Result<(), ()>
The requester segment. Reserved if segment_valid is clear.
Bits: 16..24
Sourcepub const fn segment_valid(&self) -> bool
pub const fn segment_valid(&self) -> bool
Whether requester_segment holds a valid value.
Bits: 24..25
Sourcepub const fn with_segment_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_segment_valid_checked(self, value: bool) -> Result<Self, ()>
Whether requester_segment holds a valid value.
Bits: 24..25
Sourcepub const fn with_segment_valid(self, value: bool) -> Self
pub const fn with_segment_valid(self, value: bool) -> Self
Whether requester_segment holds a valid value.
Bits: 24..25
Sourcepub const fn set_segment_valid(&mut self, value: bool)
pub const fn set_segment_valid(&mut self, value: bool)
Whether requester_segment holds a valid value.
Bits: 24..25
Sourcepub const fn set_segment_valid_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_segment_valid_checked(&mut self, value: bool) -> Result<(), ()>
Whether requester_segment holds a valid value.
Bits: 24..25
Sourcepub const fn with_reserved_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u8) -> Result<Self, ()>
Bits: 25..32
Sourcepub const fn with_reserved(self, value: u8) -> Self
pub const fn with_reserved(self, value: u8) -> Self
Bits: 25..32
Sourcepub const fn set_reserved(&mut self, value: u8)
pub const fn set_reserved(&mut self, value: u8)
Bits: 25..32
Trait Implementations§
Source§impl Clone for TdxFunctionId
impl Clone for TdxFunctionId
Source§fn clone(&self) -> TdxFunctionId
fn clone(&self) -> TdxFunctionId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more