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 read_only: 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, usually end_of_file rounded up to a cluster.
Backends may return 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.
read_only: boolThe file has FILE_ATTRIBUTE_READONLY.
file_index: u64Stable id of the file, unique within the share including any mounts
below the share root, reported as the file id by QUERY_INFO and
QUERY_DIRECTORY. Backends return the same value from Handle::stat
and Handle::list_dir for the same file, across opens and renames.
0 if the backend has none.
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