pub struct DeletedNode {
pub id: FileId,
pub name: Vec<u8>,
pub parent: Option<FileId>,
pub meta: FsMeta,
}Expand description
A recovered deleted (or orphaned) node: the identity a consumer needs to
render it. Unlike the bare FsMeta that FileSystem::deleted yields,
this carries a readable FileId (so its bytes read via
FileSystem::read_at / FileSystem::extents), the recovered name
(possibly partial — a filesystem may destroy part of the name on delete,
e.g. FAT’s 0xE5 first byte), and the parent directory (None = orphan:
the parent is unknown or unrecoverable). meta carries allocation status
and MACB times.
Fields§
§id: FileIdReadable identity — usable with read_at / extents / meta.
name: Vec<u8>The recovered name. May be empty or partial when the filesystem destroyed it on delete; never fabricated.
parent: Option<FileId>The parent directory, or None for an orphan (unrecoverable parent).
meta: FsMetaAllocation status (Allocation::Deleted or Allocation::Orphan)
plus size and MACB times.
Trait Implementations§
Source§impl Clone for DeletedNode
impl Clone for DeletedNode
Source§fn clone(&self) -> DeletedNode
fn clone(&self) -> DeletedNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more