pub struct Directory<'a, B: BlockDevice> { /* private fields */ }Implementations§
Source§impl<'a, B: BlockDevice> Directory<'a, B>
impl<'a, B: BlockDevice> Directory<'a, B>
pub fn volume(&self) -> &Volume<'a, B>
pub fn delete(self, force: bool) -> Result<(), DeviceError>
pub fn list(&self) -> Result<DirectoryIndex<'a, B>, DeviceError>
pub fn file( &'a self, name: impl AsRef<str>, mode: u8, ) -> Result<File<'a, B>, DeviceError>
pub fn dir( &'a self, name: impl AsRef<str>, create: bool, ) -> Result<Directory<'a, B>, DeviceError>
Methods from Deref<Target = 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
Trait Implementations§
Auto Trait Implementations§
impl<'a, B> Freeze for Directory<'a, B>
impl<'a, B> !RefUnwindSafe for Directory<'a, B>
impl<'a, B> !Send for Directory<'a, B>
impl<'a, B> !Sync for Directory<'a, B>
impl<'a, B> Unpin for Directory<'a, B>
impl<'a, B> !UnwindSafe for Directory<'a, B>
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