pub struct File<'a, S>{ /* private fields */ }
Expand description
A file within the FAT filesystem
Methods from Deref<Target = Properties>§
Sourcepub fn attributes(&self) -> &Attributes
pub fn attributes(&self) -> &Attributes
Get the corresponding Attributes
to this entry
Sourcepub fn creation_time(&self) -> &PrimitiveDateTime
pub fn creation_time(&self) -> &PrimitiveDateTime
Find out when this entry was created (max resolution: 1ms)
Returns a PrimitiveDateTime
from the time
crate
Sourcepub fn modification_time(&self) -> &PrimitiveDateTime
pub fn modification_time(&self) -> &PrimitiveDateTime
Find out when this entry was last modified (max resolution: 2 secs)
Returns a PrimitiveDateTime
from the time
crate
Sourcepub fn last_accessed_date(&self) -> &Date
pub fn last_accessed_date(&self) -> &Date
Trait Implementations§
Source§impl<S> Read for File<'_, S>
impl<S> Read for File<'_, S>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Pull some bytes from this source into the specified buffer,
returning how many bytes were read. Read more
Source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Self::Error>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Self::Error>
Read all bytes until EOF in this source, placing them into
buf
. Read moreAuto Trait Implementations§
impl<'a, S> Freeze for File<'a, S>
impl<'a, S> RefUnwindSafe for File<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for File<'a, S>where
S: Send,
impl<'a, S> Sync for File<'a, S>where
S: Sync,
impl<'a, S> Unpin for File<'a, S>
impl<'a, S> !UnwindSafe for File<'a, S>
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