#[non_exhaustive]pub enum FileId {
NtfsRef {
entry: u64,
seq: u16,
},
ExtInode {
ino: u64,
gen: u32,
},
ApfsOid {
oid: u64,
xid: u64,
},
FatDirEntry {
cluster: u32,
index: u16,
},
IsoExtent {
block: u32,
},
Opaque(u64),
}Expand description
Filesystem-specific stable identity. The address domain matches each FS’s real identity primitive, so a reused slot is never confused with the original.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NtfsRef
NTFS MFT reference: record number + sequence.
ExtInode
ext2/3/4 inode + generation.
ApfsOid
APFS object id + transaction id.
FatDirEntry
FAT/exFAT physical directory-entry address (no stable inode).
IsoExtent
ISO 9660 path-table / extent address.
Opaque(u64)
A filesystem with a plain inode and nothing finer.
Trait Implementations§
impl Copy for FileId
impl Eq for FileId
impl StructuralPartialEq for FileId
Auto Trait Implementations§
impl Freeze for FileId
impl RefUnwindSafe for FileId
impl Send for FileId
impl Sync for FileId
impl Unpin for FileId
impl UnsafeUnpin for FileId
impl UnwindSafe for FileId
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