#[non_exhaustive]pub struct Superblock {
pub block: MetadataBlockRef,
}Expand description
The parsed ReFS superblock (SUPB, metadata level 0).
P0 carries only the self-describing block header; the checkpoint reference and the object/container-table pointers it holds are decoded in later phases.
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.block: MetadataBlockRefThe self-describing metadata-block header (SUPB).
Implementations§
Source§impl Superblock
impl Superblock
Sourcepub fn parse_at(data: &[u8], offset: u64) -> Result<Self, RefsError>
pub fn parse_at(data: &[u8], offset: u64) -> Result<Self, RefsError>
Parse the superblock at byte offset in a whole-image buffer data.
Slices from offset and validates the SUPB block header. The caller
obtains offset from crate::BootSector::superblock_offset.
§Errors
RefsError::Truncatedifoffsetlies past the end ofdata.- Any error from
MetadataBlockRef::parse(bad signature, short header).
Trait Implementations§
Source§impl Clone for Superblock
impl Clone for Superblock
Source§impl Debug for Superblock
impl Debug for Superblock
impl Eq for Superblock
Source§impl PartialEq for Superblock
impl PartialEq for Superblock
impl StructuralPartialEq for Superblock
Auto Trait Implementations§
impl Freeze for Superblock
impl RefUnwindSafe for Superblock
impl Send for Superblock
impl Sync for Superblock
impl Unpin for Superblock
impl UnsafeUnpin for Superblock
impl UnwindSafe for Superblock
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