pub struct Directory { /* private fields */ }
Implementations§
Source§impl Directory
impl Directory
Sourcepub fn lookup(&self, name: &str) -> Result<EntryRef<'_>>
pub fn lookup(&self, name: &str) -> Result<EntryRef<'_>>
Lookup an entry of this directory by name.
Sourcepub fn entries(&self) -> impl DoubleEndedIterator<Item = EntryRef<'_>> + Clone
pub fn entries(&self) -> impl DoubleEndedIterator<Item = EntryRef<'_>> + Clone
Returns iterator over the entries of this directory.
Sourcepub async fn create_file(&mut self, name: String) -> Result<File>
pub async fn create_file(&mut self, name: String) -> Result<File>
Creates a new file inside this directory.
pub fn debug_print<'life_self, 'async_recursion>(
&'life_self self,
print: DebugPrinter,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_recursion>>where
'life_self: 'async_recursion,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directory
impl !RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl !UnwindSafe for Directory
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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