pub struct FileTreeNode {
pub inode: InodeNumber,
pub name: String,
pub children: Vec<usize>,
pub parent: Option<usize>,
pub blocks: Option<BlockRange>,
pub additional_blocks: Vec<BlockRange>,
pub link: Option<InodeNumber>,
}Expand description
A node in the in-memory file tree.
Fields§
§inode: InodeNumber§name: String§children: Vec<usize>Indices into FileTree::nodes for this node’s children.
parent: Option<usize>Index into FileTree::nodes for the parent (None for root).
blocks: Option<BlockRange>Primary data block range allocated to this node.
additional_blocks: Vec<BlockRange>Additional block ranges (for files spanning multiple extents).
link: Option<InodeNumber>If this entry is a hard link, the target inode number.
Auto Trait Implementations§
impl Freeze for FileTreeNode
impl RefUnwindSafe for FileTreeNode
impl Send for FileTreeNode
impl Sync for FileTreeNode
impl Unpin for FileTreeNode
impl UnsafeUnpin for FileTreeNode
impl UnwindSafe for FileTreeNode
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