pub struct FileInfo {
pub file: File,
pub path: PathBuf,
pub size: u64,
}Expand description
Open File coupled with its filesystem location and most useful information
The attached context for the File is kept minimal to make it easy to construct
without unnecessary kernel queries, but allowing users to:
- associate the file received in callbacks to the request (by its path)
- get the file’s most useful metadata information
Fields§
§file: File§path: PathBuf§size: u64Implementations§
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