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.