pub struct ReadDir { /* private fields */ }Available on crate feature
tokio only.Expand description
Reads the entries in a directory.
This is a wrapper around tokio::fs::ReadDir.
Implementations
sourceimpl ReadDir
impl ReadDir
sourcepub async fn next_entry(&mut self) -> Result<Option<DirEntry>>
pub async fn next_entry(&mut self) -> Result<Option<DirEntry>>
Wrapper around tokio::fs::ReadDir::next_entry.
sourcepub fn poll_next_entry(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Option<DirEntry>>>
pub fn poll_next_entry(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Option<DirEntry>>>
Wrapper around tokio::fs::ReadDir::poll_next_entry.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ReadDir
impl Send for ReadDir
impl Sync for ReadDir
impl Unpin for ReadDir
impl !UnwindSafe for ReadDir
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more