pub struct OpenedFile {
pub file: File,
pub path: PathBuf,
pub size: u64,
}Expand description
A successfully opened, validated input file.
Fields§
§file: FileThe open file handle (already confirmed to be a regular file).
path: PathBufThe fully resolved (canonical) path of the file.
size: u64The size in bytes as reported by the file handle’s metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenedFile
impl RefUnwindSafe for OpenedFile
impl Send for OpenedFile
impl Sync for OpenedFile
impl Unpin for OpenedFile
impl UnsafeUnpin for OpenedFile
impl UnwindSafe for OpenedFile
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