Struct pci_driver::regions::PciRegionSnapshot
source · [−]pub struct PciRegionSnapshot { /* private fields */ }Expand description
Use this to take snapshots of anything that is an AsPciSubregion.
Implementations
sourceimpl PciRegionSnapshot
impl PciRegionSnapshot
sourcepub fn take<'a>(
as_subregion: impl AsPciSubregion<'a>
) -> Result<PciRegionSnapshot>
pub fn take<'a>(
as_subregion: impl AsPciSubregion<'a>
) -> Result<PciRegionSnapshot>
Take a snapshot of the given subregion.
Trait Implementations
sourceimpl<'a> AsPciSubregion<'a> for &'a PciRegionSnapshot
impl<'a> AsPciSubregion<'a> for &'a PciRegionSnapshot
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 Clone for PciRegionSnapshot
impl Clone for PciRegionSnapshot
sourcefn clone(&self) -> PciRegionSnapshot
fn clone(&self) -> PciRegionSnapshot
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 PciRegionSnapshot
impl Debug for PciRegionSnapshot
sourceimpl From<PciRegionSnapshot> for Box<[u8]>
impl From<PciRegionSnapshot> for Box<[u8]>
sourcefn from(snapshot: PciRegionSnapshot) -> Self
fn from(snapshot: PciRegionSnapshot) -> Self
Converts to this type from the input type.
sourceimpl From<PciRegionSnapshot> for Vec<u8>
impl From<PciRegionSnapshot> for Vec<u8>
sourcefn from(snapshot: PciRegionSnapshot) -> Self
fn from(snapshot: PciRegionSnapshot) -> Self
Converts to this type from the input type.
sourceimpl PciRegion for PciRegionSnapshot
impl PciRegion for PciRegionSnapshot
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<()>
fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<()>
Read from a contiguous range of the region into a byte buffer. Read more
sourcefn read_le_u16(&self, offset: u64) -> Result<u16>
fn read_le_u16(&self, offset: u64) -> Result<u16>
sourcefn read_le_u32(&self, offset: u64) -> Result<u32>
fn read_le_u32(&self, offset: u64) -> Result<u32>
Auto Trait Implementations
impl RefUnwindSafe for PciRegionSnapshot
impl Send for PciRegionSnapshot
impl Sync for PciRegionSnapshot
impl Unpin for PciRegionSnapshot
impl UnwindSafe for PciRegionSnapshot
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