pub struct Snapshot {
pub allocations: Vec<Allocation>,
pub executable_regions: HashMap<u64, ExecutableRegion>,
}Expand description
Contains all the data received over a SnapshotReceiver channel.
Fields§
§allocations: Vec<Allocation>All the live allocations in the analyzed process, indexed by memory address.
executable_regions: HashMap<u64, ExecutableRegion>All the executable memory regions in the analyzed process, indexed by start address.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub async fn receive_single_from(
stream: SnapshotReceiverRequestStream,
) -> Result<Snapshot, Error>
pub async fn receive_single_from( stream: SnapshotReceiverRequestStream, ) -> Result<Snapshot, Error>
Receives a snapshot over a SnapshotReceiver channel and reassembles it.
Sourcepub async fn receive_multi_from(
stream: SnapshotReceiverRequestStream,
) -> Result<Vec<SnapshotWithHeader>, Error>
pub async fn receive_multi_from( stream: SnapshotReceiverRequestStream, ) -> Result<Vec<SnapshotWithHeader>, Error>
Receives multiple header-prefixed snapshots over a SnapshotReceiver channel and
reassemble them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl !Send for Snapshot
impl !Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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