Struct freebsd_libgeom::Snapshot
source · pub struct Snapshot(/* private fields */);
Expand description
A geom statistics snapshot.
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub fn iter(&mut self) -> SnapshotIter<'_> ⓘ
pub fn iter(&mut self) -> SnapshotIter<'_> ⓘ
Iterate through all devices described by the snapshot
sourcepub fn iter_pair<'a>(
&'a mut self,
prev: Option<&'a mut Snapshot>
) -> SnapshotPairIter<'a> ⓘ
pub fn iter_pair<'a>( &'a mut self, prev: Option<&'a mut Snapshot> ) -> SnapshotPairIter<'a> ⓘ
Iterates through a pair of Snapshot
s in lockstep, where one snapshot
is optional.
sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Acquires a new snapshot of the raw data from the kernel.
Is not guaranteed to be completely atomic and consistent.
sourcepub fn timestamp(&mut self) -> Timespec
pub fn timestamp(&mut self) -> Timespec
Accessor for the embedded timestamp generated by Snapshot::new
.
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