pub struct Directory<B: Deref<Target = [Block]>, E: Debug, IO>where
IO: IO<Block<'static> = B, Error = E>,{ /* private fields */ }Implementations§
Source§impl<B: Deref<Target = [Block]>, E: Debug, IO> Directory<B, E, IO>where
IO: IO<Block<'static> = B, Error = E>,
impl<B: Deref<Target = [Block]>, E: Debug, IO> Directory<B, E, IO>where
IO: IO<Block<'static> = B, Error = E>,
Sourcepub fn walk<H>(&mut self, h: H) -> Result<Option<EntrySet>, Error<E>>
pub fn walk<H>(&mut self, h: H) -> Result<Option<EntrySet>, Error<E>>
Walk through directory, including not inuse entries
Sourcepub fn find(&mut self, name: &str) -> Result<Option<EntrySet>, Error<E>>
pub fn find(&mut self, name: &str) -> Result<Option<EntrySet>, Error<E>>
Find a file or directory matching specified name
Sourcepub fn touch(
&mut self,
datetime: DateTime,
opts: TouchOptions,
) -> Result<(), Error<E>>
pub fn touch( &mut self, datetime: DateTime, opts: TouchOptions, ) -> Result<(), Error<E>>
Change current directory timestamp
Sourcepub fn open(
&mut self,
entryset: &EntrySet,
) -> Result<FileOrDirectory<B, E, IO>, Error<E>>
pub fn open( &mut self, entryset: &EntrySet, ) -> Result<FileOrDirectory<B, E, IO>, Error<E>>
Open a file or directory
Trait Implementations§
Auto Trait Implementations§
impl<B, E, IO> Freeze for Directory<B, E, IO>
impl<B, E, IO> !RefUnwindSafe for Directory<B, E, IO>
impl<B, E, IO> !Send for Directory<B, E, IO>
impl<B, E, IO> !Sync for Directory<B, E, IO>
impl<B, E, IO> Unpin for Directory<B, E, IO>
impl<B, E, IO> !UnwindSafe for Directory<B, E, IO>
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