pub struct Snapshot<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> Snapshot<'a, 'b>
impl<'a, 'b> Snapshot<'a, 'b>
sourcepub fn new(destination: &'a Path, memory_ranges: Vec<Range<u64>>) -> Self
pub fn new(destination: &'a Path, memory_ranges: Vec<Range<u64>>) -> Self
Create a new memory snapshot.
The default version implements the LiME
format.
sourcepub fn max_disk_usage_percentage(
self,
max_disk_usage_percentage: Option<f64>
) -> Self
pub fn max_disk_usage_percentage( self, max_disk_usage_percentage: Option<f64> ) -> Self
Specify the maximum disk usage to stay under as a percentage
This is an estimation, calculated at start time
sourcepub fn max_disk_usage(self, max_disk_usage: Option<NonZeroU64>) -> Self
pub fn max_disk_usage(self, max_disk_usage: Option<NonZeroU64>) -> Self
Specify the maximum disk space in MB to use
This is an estimation, calculated at start time
Auto Trait Implementations§
impl<'a, 'b> Freeze for Snapshot<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Snapshot<'a, 'b>
impl<'a, 'b> Send for Snapshot<'a, 'b>
impl<'a, 'b> Sync for Snapshot<'a, 'b>
impl<'a, 'b> Unpin for Snapshot<'a, 'b>
impl<'a, 'b> UnwindSafe for Snapshot<'a, 'b>
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