Struct pci_driver::config::caps::Msi32BitCapability
source · [−]pub struct Msi32BitCapability<'a> { /* private fields */ }Implementations
sourceimpl<'a> Msi32BitCapability<'a>
impl<'a> Msi32BitCapability<'a>
pub fn message_control(&self) -> MsiMessageControl<'a>
Trait Implementations
sourceimpl<'a> AsPciSubregion<'a> for Msi32BitCapability<'a>
impl<'a> AsPciSubregion<'a> for Msi32BitCapability<'a>
sourcefn as_subregion(&self) -> PciSubregion<'a>
fn as_subregion(&self) -> PciSubregion<'a>
Returns a PciSubregion corresponding to self.
sourcefn 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.
sourceimpl<'a> Capability<'a> for Msi32BitCapability<'a>
impl<'a> Capability<'a> for Msi32BitCapability<'a>
sourcefn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Result<Option<Self>>
fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Result<Option<Self>>
Tries to create an instance of this Capability backed by the given AsPciSubregion. If
things like for instance the Capablity ID and possibly other factors don’t match what is
expected for the present type, returns Ok(None). Read more
sourcefn header(&self) -> CapabilityHeader<'a>
fn header(&self) -> CapabilityHeader<'a>
The spec doesn’t really define a header part explicitly, but this holds the two fields that are common to all Capabilities. Read more
sourceimpl<'a> Clone for Msi32BitCapability<'a>
impl<'a> Clone for Msi32BitCapability<'a>
sourcefn clone(&self) -> Msi32BitCapability<'a>
fn clone(&self) -> Msi32BitCapability<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Msi32BitCapability<'_>
impl Debug for Msi32BitCapability<'_>
impl<'a> Copy for Msi32BitCapability<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Msi32BitCapability<'a>
impl<'a> Send for Msi32BitCapability<'a>
impl<'a> Sync for Msi32BitCapability<'a>
impl<'a> Unpin for Msi32BitCapability<'a>
impl<'a> !UnwindSafe for Msi32BitCapability<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> PciRegion for T where
T: AsPciSubregion<'a> + Debug + Send + Sync,
impl<'a, T> PciRegion for T where
T: AsPciSubregion<'a> + Debug + Send + Sync,
sourcefn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Whether the region may be read, written, or both.
sourcefn as_ptr(&self) -> Option<*const u8>
fn as_ptr(&self) -> Option<*const u8>
Returns a const pointer to the beginning of the PciRegion. Read more
sourcefn as_mut_ptr(&self) -> Option<*mut u8>
fn as_mut_ptr(&self) -> Option<*mut u8>
Returns a mut pointer to the beginning of the PciRegion. Read more
sourcefn 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