[−][src]Struct sunrise_fs::detail::driver::fat::directory::DirectoryInterface
A libfat directory reader implementing DirectoryOperations
.
Fields
base_path: ArrayString<[u8; 768]>
The opened directory path. Used to get the complete path of every entries.
inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>
libfat filesystem interface.
internal_iter: FatDirectoryEntryIterator
The iterator used to iter over libfat's directory entries.
filter_fn: fn(_: &FatDirectoryEntry) -> bool
The filter required by the user.
entry_count: u64
The number of entries in the directory after filter_fn
.
Implementations
impl<'a> DirectoryInterface
[src]
pub fn new(
base_path: ArrayString<[u8; 768]>,
inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>,
internal_iter: FatDirectoryEntryIterator,
filter_fn: fn(_: &FatDirectoryEntry) -> bool,
entry_count: u64
) -> Self
[src]
base_path: ArrayString<[u8; 768]>,
inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>,
internal_iter: FatDirectoryEntryIterator,
filter_fn: fn(_: &FatDirectoryEntry) -> bool,
entry_count: u64
) -> Self
Create a new DirectoryInterface.
fn convert_entry(
fat_dir_entry: FatDirectoryEntry,
base_path: &ArrayString<[u8; 768]>
) -> LibUserResult<DirectoryEntry>
[src]
fat_dir_entry: FatDirectoryEntry,
base_path: &ArrayString<[u8; 768]>
) -> LibUserResult<DirectoryEntry>
convert libfat's DirectoryEntry to libfs's DirectoryEntry.
Trait Implementations
impl Debug for DirectoryInterface
[src]
impl DirectoryOperations for DirectoryInterface
[src]
fn read(&mut self, buf: &mut [DirectoryEntry]) -> LibUserResult<u64>
[src]
fn entry_count(&self) -> LibUserResult<u64>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DirectoryInterface
impl Send for DirectoryInterface
impl Sync for DirectoryInterface
impl Unpin for DirectoryInterface
impl !UnwindSafe for DirectoryInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&self) -> usize
[src]
fn is_cool(addr: usize, size: usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,