#[non_exhaustive]pub struct Snapshot {
pub xid: u64,
pub name: String,
pub create_time: u64,
pub change_time: u64,
pub sblock_oid: u64,
pub extentref_tree_oid: u64,
pub inum: u64,
pub flags: u32,
}Expand description
A parsed snapshot (one APFS_TYPE_SNAP_METADATA record).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.xid: u64The snapshot’s transaction id (the snap-metadata key’s low 60 bits).
name: StringThe snapshot name (j_snap_metadata_val_t.name, NUL-terminated).
create_time: u64create_time (ns since 1970-01-01 UTC).
change_time: u64change_time (ns since 1970-01-01 UTC).
sblock_oid: u64sblock_oid — the block address of the volume superblock (APSB) frozen at
this snapshot.
extentref_tree_oid: u64extentref_tree_oid — the snapshot’s extent-reference tree oid.
inum: u64inum — the snapshot’s inum field.
flags: u32flags (j_snap_metadata_val_t.flags).
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 UnsafeUnpin 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