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§
source§impl ReadDir
impl ReadDir
sourcepub async fn next_entry(&mut self) -> Result<Option<DirEntry>>
pub async fn next_entry(&mut self) -> Result<Option<DirEntry>>
Returns the next entry in the directory stream.
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>>>
Polls for the next directory entry in the stream.
Wrapper around tokio::fs::ReadDir::poll_next_entry
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadDir
impl !RefUnwindSafe for ReadDir
impl Send for ReadDir
impl Sync for ReadDir
impl Unpin for ReadDir
impl !UnwindSafe for ReadDir
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