pub struct Volume<'a, B: BlockDevice> { /* private fields */ }Implementations§
Source§impl<'a, B: BlockDevice> Volume<'a, B>
impl<'a, B: BlockDevice> Volume<'a, B>
pub fn name(&self) -> &str
pub fn cluster_count(&self) -> u32
pub fn device(&self) -> &Storage<B>
pub fn fat_version(&self) -> &FatVersion
pub fn dir_root(&'a self) -> Directory<'a, B>
pub fn open(&'a self, path: impl AsRef<str>) -> Result<File<'a, B>, DeviceError>
pub fn file_create( &'a self, path: impl AsRef<str>, ) -> Result<File<'a, B>, DeviceError>
pub fn dir_open( &'a self, path: impl AsRef<str>, ) -> Result<Directory<'a, B>, DeviceError>
pub fn dir_create( &'a self, path: impl AsRef<str>, ) -> Result<Directory<'a, B>, DeviceError>
pub fn file_open( &'a self, path: impl AsRef<str>, mode: u8, ) -> Result<File<'a, B>, DeviceError>
pub unsafe fn list_entry( &'a self, target: Option<&DirEntry>, ) -> Result<DirectoryIndex<'a, B>, DeviceError>
pub unsafe fn file_entry( &'a self, name: impl AsRef<str>, parent: Option<&DirEntry>, mode: u8, ) -> Result<File<'a, B>, DeviceError>
pub unsafe fn dir_entry( &'a self, name: impl AsRef<str>, parent: Option<&DirEntry>, create: bool, ) -> Result<Directory<'a, B>, DeviceError>
Auto Trait Implementations§
impl<'a, B> !Freeze for Volume<'a, B>
impl<'a, B> !RefUnwindSafe for Volume<'a, B>
impl<'a, B> !Send for Volume<'a, B>
impl<'a, B> !Sync for Volume<'a, B>
impl<'a, B> Unpin for Volume<'a, B>
impl<'a, B> !UnwindSafe for Volume<'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