pub struct FileInfo {
pub kind: u32,
pub attrs: u32,
pub size: u64,
pub accessed: Option<i64>,
pub modified: Option<i64>,
pub created: Option<i64>,
pub link_target: Option<String>,
}Expand description
What the host knows about a file.
Fields§
§kind: u32A combination of file_type values.
attrs: u32A combination of file_attr values.
size: u64The size in bytes.
accessed: Option<i64>When the file was last read, in seconds since the start of 1970.
modified: Option<i64>When the file was last changed.
created: Option<i64>When the file was created.
link_target: Option<String>Where a symbolic link leads.
Trait Implementations§
impl Eq for FileInfo
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Forget for FileInfo
impl Freeze for FileInfo
impl Move for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfowhere
RawVecInner: Send,
impl Sync for FileInfowhere
RawVecInner: Sync,
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfowhere
RawVecInner: UnwindSafe,
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