pub struct FileInfo {
pub name: String,
pub end_of_file: u64,
pub allocation_size: u64,
pub creation_time: u64,
pub last_access_time: u64,
pub last_write_time: u64,
pub change_time: u64,
pub is_directory: bool,
pub file_index: u64,
}Expand description
Filesystem-style metadata for a single file or directory.
Fields§
§name: StringDisplay name (last component). For QUERY_INFO at the share root this is the share name.
end_of_file: u64File size in bytes.
allocation_size: u64Allocation size — typically end_of_file rounded up to a cluster size.
v1 backends may safely return the same value as end_of_file.
creation_time: u64FILETIME (100ns ticks since 1601).
last_access_time: u64§last_write_time: u64§change_time: u64§is_directory: boolTrue if this is a directory.
file_index: u64Optional 64-bit unique file id (for FileInternalInformation). v1 may
return 0 if unavailable; the dispatcher will substitute the FileId.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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