Struct pci_driver::config::caps::MsiMessageControl
source · pub struct MsiMessageControl<'a> { /* private fields */ }Implementations§
source§impl<'a> MsiMessageControl<'a>
impl<'a> MsiMessageControl<'a>
pub fn msi_enable(&self) -> PciBitReadWrite<'a, u16>
pub fn multiple_message_capable(&self) -> PciBitsReadOnly<'a, u16, u8>
pub fn multiple_message_enable(&self) -> PciBitsReadWrite<'a, u16, u8>
pub fn bit_64_address_capable(&self) -> PciBitReadOnly<'a, u16>
pub fn per_vector_masking_capable(&self) -> PciBitReadOnly<'a, u16>
pub fn extended_message_data_capable(&self) -> PciBitReadOnly<'a, u16>
pub fn extended_message_data_enable(&self) -> PciBitReadWrite<'a, u16>
Trait Implementations§
source§impl<'a> AsPciSubregion<'a> for MsiMessageControl<'a>
impl<'a> AsPciSubregion<'a> for MsiMessageControl<'a>
source§fn as_subregion(&self) -> PciSubregion<'a>
fn as_subregion(&self) -> PciSubregion<'a>
Returns a
PciSubregion corresponding to self.source§fn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
fn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
Returns a
PciSubregion corresponding to a range of self.source§impl<'a> BackedByPciSubregion<'a> for MsiMessageControl<'a>
impl<'a> BackedByPciSubregion<'a> for MsiMessageControl<'a>
source§fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
Does not check whether the subregion is big enough. If it isn’t, accesses may later fail.
source§impl<'a> Clone for MsiMessageControl<'a>
impl<'a> Clone for MsiMessageControl<'a>
source§fn clone(&self) -> MsiMessageControl<'a>
fn clone(&self) -> MsiMessageControl<'a>
Returns a copy 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 moresource§impl Debug for MsiMessageControl<'_>
impl Debug for MsiMessageControl<'_>
source§impl PciBitFieldReadable for MsiMessageControl<'_>
impl PciBitFieldReadable for MsiMessageControl<'_>
source§impl PciBitFieldWriteable for MsiMessageControl<'_>
impl PciBitFieldWriteable for MsiMessageControl<'_>
impl<'a> Copy for MsiMessageControl<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MsiMessageControl<'a>
impl<'a> Send for MsiMessageControl<'a>
impl<'a> Sync for MsiMessageControl<'a>
impl<'a> Unpin for MsiMessageControl<'a>
impl<'a> !UnwindSafe for MsiMessageControl<'a>
Blanket Implementations§
source§impl<'a, T> PciRegion for Twhere
T: AsPciSubregion<'a> + Debug + Send + Sync,
impl<'a, T> PciRegion for Twhere T: AsPciSubregion<'a> + Debug + Send + Sync,
source§fn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Whether the region may be read, written, or both.
source§fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
Read from a contiguous range of the region into a byte buffer. Read more