#[non_exhaustive]pub struct IntegrityMeta {
pub version: u32,
pub flags: u32,
pub hash_type: u32,
pub broken_xid: u64,
}Expand description
Parsed integrity metadata.
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.version: u32§flags: u32§hash_type: u32§broken_xid: u64Non-zero ⇒ the seal is recorded as broken at this transaction id.
Implementations§
Source§impl IntegrityMeta
impl IntegrityMeta
Sourcepub fn parse(block: &[u8]) -> Result<Self>
pub fn parse(block: &[u8]) -> Result<Self>
Parse an integrity_meta_phys_t (parse only — no hash recomputation,
which is a forensic judgment in apfs-forensic::sealed).
§Errors
crate::ApfsError::ChecksumMismatch on a Fletcher-64 failure (checksum-
before-trust); crate::ApfsError::FieldOutOfRange if the block is too
short to hold the structure.
Trait Implementations§
Source§impl Clone for IntegrityMeta
impl Clone for IntegrityMeta
Source§fn clone(&self) -> IntegrityMeta
fn clone(&self) -> IntegrityMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntegrityMeta
impl RefUnwindSafe for IntegrityMeta
impl Send for IntegrityMeta
impl Sync for IntegrityMeta
impl Unpin for IntegrityMeta
impl UnsafeUnpin for IntegrityMeta
impl UnwindSafe for IntegrityMeta
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