pub struct InodeTable {
pub directories: BTreeMap<u32, Box<dyn DirectoryInode + Send + Sync>>,
pub files: BTreeMap<u32, Box<dyn FileInode + Send + Sync>>,
}Expand description
Inode table
Fields§
§directories: BTreeMap<u32, Box<dyn DirectoryInode + Send + Sync>>§files: BTreeMap<u32, Box<dyn FileInode + Send + Sync>>Implementations§
Source§impl InodeTable
impl InodeTable
pub fn ids(&self) -> impl Iterator<Item = u32> + '_
pub async fn read_root_inode( inode_ref: InodeRef, superblock: &SuperBlock, r: impl AsyncSeekBufRead, ) -> Result<u32, InodeTableError>
pub async fn from_reader( superblock: &SuperBlock, r: impl AsyncSeekBufRead, ) -> Result<Self, InodeTableError>
Trait Implementations§
Source§impl Debug for InodeTable
impl Debug for InodeTable
Source§impl Default for InodeTable
impl Default for InodeTable
Source§fn default() -> InodeTable
fn default() -> InodeTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InodeTable
impl !RefUnwindSafe for InodeTable
impl Send for InodeTable
impl Sync for InodeTable
impl Unpin for InodeTable
impl !UnwindSafe for InodeTable
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more