pub enum FileId {
Inode {
device_id: u64,
inode_number: u64,
},
LowRes {
volume_serial_number: u32,
file_index: u64,
},
HighRes {
volume_serial_number: u64,
file_id: u128,
},
}
Expand description
Unique identifier of a file
Variants§
Inode
Inode number, available on Linux and macOS.
LowRes
Low resolution file ID, available on Windows XP and above.
Compared to the high resolution variant, only the lower parts of the IDs are stored.
On Windows, the low resolution variant can be requested explicitly with the get_low_res_file_id
function.
Details: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileinformationbyhandle.
HighRes
High resolution file ID, available on Windows Vista and above.
On Windows, the high resolution variant can be requested explicitly with the get_high_res_file_id
function.
Details: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getfileinformationbyhandleex.
Implementations§
Trait Implementations§
Source§impl Ord for FileId
impl Ord for FileId
Source§impl PartialOrd for FileId
impl PartialOrd for FileId
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)