pub struct DirEntry { /* private fields */ }Implementations§
Source§impl DirEntry
impl DirEntry
pub fn size(&self) -> u32
pub fn name(&self) -> &str
pub fn offset(&self) -> u32
pub fn is_file(&self) -> bool
pub fn created(&self) -> &Time
pub fn attributes(&self) -> u8
pub fn modified(&self) -> &Time
pub fn cluster(&self) -> Cluster
pub fn is_directory(&self) -> bool
pub fn filename(&self) -> &ShortName
pub fn set_created(&mut self, t: Time)
pub fn set_modified(&mut self, t: Time)
pub fn set_attributes(&mut self, a: u8)
pub fn into_dir<'a, B: BlockDevice>( self, vol: &'a Volume<'_, B>, ) -> Result<Directory<'a, B>, DeviceError>
pub fn into_file<'a, B: BlockDevice>( self, vol: &'a Volume<'_, B>, mode: u8, ) -> Result<File<'a, B>, DeviceError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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