pub struct PciRegionSnapshot { /* private fields */ }
Expand description
Use this to take snapshots of anything that is an AsPciSubregion
.
Implementations§
Source§impl 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§
Source§impl<'a> AsPciSubregion<'a> for &'a PciRegionSnapshot
impl<'a> AsPciSubregion<'a> for &'a PciRegionSnapshot
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 Clone for PciRegionSnapshot
impl Clone for PciRegionSnapshot
Source§fn clone(&self) -> PciRegionSnapshot
fn clone(&self) -> PciRegionSnapshot
Returns a duplicate 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 PciRegionSnapshot
impl Debug for PciRegionSnapshot
Source§impl From<PciRegionSnapshot> for Box<[u8]>
impl From<PciRegionSnapshot> for Box<[u8]>
Source§fn from(snapshot: PciRegionSnapshot) -> Self
fn from(snapshot: PciRegionSnapshot) -> Self
Converts to this type from the input type.
Source§impl From<PciRegionSnapshot> for Vec<u8>
impl From<PciRegionSnapshot> for Vec<u8>
Source§fn from(snapshot: PciRegionSnapshot) -> Self
fn from(snapshot: PciRegionSnapshot) -> Self
Converts to this type from the input type.
Source§impl PciRegion for PciRegionSnapshot
impl PciRegion for PciRegionSnapshot
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<()>
fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<()>
Read from a contiguous range of the region into a byte buffer. Read more
Auto Trait Implementations§
impl Freeze for PciRegionSnapshot
impl RefUnwindSafe for PciRegionSnapshot
impl Send for PciRegionSnapshot
impl Sync for PciRegionSnapshot
impl Unpin for PciRegionSnapshot
impl UnwindSafe for PciRegionSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more