pub struct FileAttr {
attributes: c_ulong,
creation_time: FILETIME,
last_access_time: FILETIME,
last_write_time: FILETIME,
file_size: u64,
reparse_tag: c_ulong,
volume_serial_number: Option<u32>,
number_of_links: Option<u32>,
file_index: Option<u64>,
}
Fields§
§attributes: c_ulong
§creation_time: FILETIME
§last_access_time: FILETIME
§last_write_time: FILETIME
§file_size: u64
§reparse_tag: c_ulong
§volume_serial_number: Option<u32>
§number_of_links: Option<u32>
§file_index: Option<u64>
Implementations§
source§impl FileAttr
impl FileAttr
pub fn size(&self) -> u64
pub fn perm(&self) -> FilePermissions
pub fn attrs(&self) -> u32
pub fn file_type(&self) -> FileType
pub fn modified(&self) -> Result<SystemTime>
pub fn accessed(&self) -> Result<SystemTime>
pub fn created(&self) -> Result<SystemTime>
pub fn modified_u64(&self) -> u64
pub fn accessed_u64(&self) -> u64
pub fn created_u64(&self) -> u64
pub fn volume_serial_number(&self) -> Option<u32>
pub fn number_of_links(&self) -> Option<u32>
pub fn file_index(&self) -> Option<u64>
Trait Implementations§
source§impl From<WIN32_FIND_DATAW> for FileAttr
impl From<WIN32_FIND_DATAW> for FileAttr
source§fn from(wfd: WIN32_FIND_DATAW) -> Self
fn from(wfd: WIN32_FIND_DATAW) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FileAttr
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnwindSafe for FileAttr
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