Struct ConfigStat
#[non_exhaustive]pub struct ConfigStat {
pub kind: ConfigEntryKind,
pub len: u64,
pub modified_millis: u64,
}Expand description
A file’s or folder’s size and age (java.io.File.length/lastModified).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: ConfigEntryKindWhether the path is a file or a folder.
len: u64Bytes, for a file; 0 for a folder.
modified_millis: u64Milliseconds since the Unix epoch; 0 where the system doesn’t say.
Trait Implementations§
§impl Clone for ConfigStat
impl Clone for ConfigStat
§fn clone(&self) -> ConfigStat
fn clone(&self) -> ConfigStat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConfigStat
§impl Debug for ConfigStat
impl Debug for ConfigStat
impl Eq for ConfigStat
§impl From<ConfigStat> for ConfigStat
impl From<ConfigStat> for ConfigStat
§fn from(v: ConfigStat) -> ConfigStat
fn from(v: ConfigStat) -> ConfigStat
Converts to this type from the input type.
§impl PartialEq for ConfigStat
impl PartialEq for ConfigStat
impl StructuralPartialEq for ConfigStat
Auto Trait Implementations§
impl Freeze for ConfigStat
impl RefUnwindSafe for ConfigStat
impl Send for ConfigStat
impl Sync for ConfigStat
impl Unpin for ConfigStat
impl UnsafeUnpin for ConfigStat
impl UnwindSafe for ConfigStat
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