pub struct DirItem {
pub location: DiskKey,
pub transid: u64,
pub file_type: FileType,
pub name: Vec<u8>,
pub data: Vec<u8>,
}Expand description
Directory entry, stored as DIR_ITEM (hashed by name) or DIR_INDEX
(sequential index) in the FS tree.
Multiple entries can be packed into a single item when names hash to the
same value (for DIR_ITEM) or when processing xattrs (XATTR_ITEM).
Fields§
§location: DiskKeyKey of the target inode (objectid = inode number, type = INODE_ITEM).
transid: u64Transaction ID when this entry was created.
file_type: FileTypeType of the referenced inode (file, directory, symlink, etc.).
name: Vec<u8>Filename or xattr name (raw bytes).
data: Vec<u8>Xattr value (empty for regular directory entries).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirItem
impl RefUnwindSafe for DirItem
impl Send for DirItem
impl Sync for DirItem
impl Unpin for DirItem
impl UnsafeUnpin for DirItem
impl UnwindSafe for DirItem
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