pub struct SourceCatalogSnapshot {
pub volume: SourceVolumeSnapshot,
pub dirs: Vec<SourceDirSnapshot>,
pub files: Vec<SourceFileSnapshot>,
}Expand description
Full capture of a source HFS volume: volume metadata plus every directory and file record in the catalog.
Catalog thread records are not captured — the target writer recreates threads from scratch.
Fields§
§volume: SourceVolumeSnapshot§dirs: Vec<SourceDirSnapshot>§files: Vec<SourceFileSnapshot>Implementations§
Source§impl SourceCatalogSnapshot
impl SourceCatalogSnapshot
Sourcepub fn capture<R: Read + Seek>(
fs: &mut HfsFilesystem<R>,
) -> Result<Self, FilesystemError>
pub fn capture<R: Read + Seek>( fs: &mut HfsFilesystem<R>, ) -> Result<Self, FilesystemError>
Capture volume + all directory + all file records. Uses only the primary catalog B-tree; index nodes are ignored and only leaf records are visited. Unknown record types (threads, corrupt) are skipped.
Trait Implementations§
Source§impl Clone for SourceCatalogSnapshot
impl Clone for SourceCatalogSnapshot
Auto Trait Implementations§
impl Freeze for SourceCatalogSnapshot
impl RefUnwindSafe for SourceCatalogSnapshot
impl Send for SourceCatalogSnapshot
impl Sync for SourceCatalogSnapshot
impl Unpin for SourceCatalogSnapshot
impl UnsafeUnpin for SourceCatalogSnapshot
impl UnwindSafe for SourceCatalogSnapshot
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