#[non_exhaustive]pub struct Checkpoint;Expand description
The ReFS checkpoint.
P1 exposes the checkpoint locations named by the superblock; parsing the
CHKP block body (system-table pointers) is a later phase (the checkpoint
block is not physically resident in the current oracle slice).
Implementations§
Source§impl Checkpoint
impl Checkpoint
Sourcepub fn locations_from_superblock(
superblock: &[u8],
) -> Result<Vec<u64>, RefsError>
pub fn locations_from_superblock( superblock: &[u8], ) -> Result<Vec<u64>, RefsError>
Return the checkpoint block numbers named by a superblock metadata block.
superblock is the whole superblock page (starting at the SUPB
signature). The checkpoint references data offset is relative to the
start of the block.
§Errors
RefsError::Truncated if the buffer is too short to hold the
checkpoint-references offset/count fields, or the referenced checkpoint
references data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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