[−][src]Struct async_std::fs::ReadDir
A stream of entries in a directory.
This stream is returned by read_dir
and yields items of type
io::Result
<
DirEntry
>
. Each DirEntry
can then retrieve information like entry's
path or metadata.
This type is an async version of std::fs::ReadDir
.
Trait Implementations
impl Stream for ReadDir
[src]
type Item = Result<DirEntry>
The type of items yielded by this stream. Read more
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
[src]
fn next(&mut self) -> ImplFuture<Option<Self::Item>> where
Self: Unpin,
[src]
Self: Unpin,
fn take(self, n: usize) -> Take<Self> where
Self: Sized,
[src]
Self: Sized,
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P, Self::Item> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> bool,
fn step_by(self, step: usize) -> StepBy<Self> where
Self: Sized,
[src]
Self: Sized,
fn chain<U>(self, other: U) -> Chain<Self, U> where
Self: Sized,
U: Stream<Item = Self::Item> + Sized,
[src]
Self: Sized,
U: Stream<Item = Self::Item> + Sized,
fn cloned<'a, T>(self) -> Cloned<Self> where
Self: Sized + Stream<Item = &'a T>,
T: 'a + Clone,
[src]
Self: Sized + Stream<Item = &'a T>,
T: 'a + Clone,
fn copied<'a, T>(self) -> Copied<Self> where
Self: Sized + Stream<Item = &'a T>,
T: 'a + Copy,
[src]
Self: Sized + Stream<Item = &'a T>,
T: 'a + Copy,
fn cycle(self) -> Cycle<Self, Self::Item> where
Self: Sized,
Self::Item: Clone,
[src]
Self: Sized,
Self::Item: Clone,
fn enumerate(self) -> Enumerate<Self> where
Self: Sized,
[src]
Self: Sized,
fn map<B, F>(self, f: F) -> Map<Self, F, Self::Item, B> where
Self: Sized,
F: FnMut(Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(Self::Item) -> B,
fn inspect<F>(self, f: F) -> Inspect<Self, F, Self::Item> where
Self: Sized,
F: FnMut(&Self::Item),
[src]
Self: Sized,
F: FnMut(&Self::Item),
fn last(self) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
Self: Sized,
fn filter<P>(self, predicate: P) -> Filter<Self, P, Self::Item> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> bool,
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, Self::Item, F> where
Self: Sized,
U: IntoStream,
F: FnMut(Self::Item) -> U,
[src]
Self: Sized,
U: IntoStream,
F: FnMut(Self::Item) -> U,
fn flatten(self) -> Flatten<Self, Self::Item> where
Self: Sized,
Self::Item: IntoStream,
[src]
Self: Sized,
Self::Item: IntoStream,
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F, Self::Item, B> where
Self: Sized,
F: FnMut(Self::Item) -> Option<B>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Option<B>,
fn min_by_key<K>(self, key_by: K) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
Self::Item: Ord,
K: FnMut(&Self::Item) -> Self::Item,
[src]
Self: Sized,
Self::Item: Ord,
K: FnMut(&Self::Item) -> Self::Item,
fn max_by_key<K>(self, key_by: K) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
Self::Item: Ord,
K: FnMut(&Self::Item) -> Self::Item,
[src]
Self: Sized,
Self::Item: Ord,
K: FnMut(&Self::Item) -> Self::Item,
fn min_by<F>(self, compare: F) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
[src]
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
fn min<F>(self) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
[src]
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
fn max_by<F>(self, compare: F) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
[src]
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
fn nth(&mut self, n: usize) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
fn all<F>(&mut self, f: F) -> ImplFuture<bool> where
Self: Unpin + Sized,
F: FnMut(Self::Item) -> bool,
[src]
Self: Unpin + Sized,
F: FnMut(Self::Item) -> bool,
fn find<P>(&mut self, p: P) -> ImplFuture<Option<Self::Item>> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> bool,
fn find_map<F, B>(&mut self, f: F) -> ImplFuture<Option<B>> where
Self: Sized,
F: FnMut(Self::Item) -> Option<B>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Option<B>,
fn fold<B, F>(self, init: B, f: F) -> ImplFuture<B> where
Self: Sized,
F: FnMut(B, Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(B, Self::Item) -> B,
fn for_each<F>(self, f: F) -> ImplFuture<()> where
Self: Sized,
F: FnMut(Self::Item),
[src]
Self: Sized,
F: FnMut(Self::Item),
fn any<F>(&mut self, f: F) -> ImplFuture<bool> where
Self: Unpin + Sized,
F: FnMut(Self::Item) -> bool,
[src]
Self: Unpin + Sized,
F: FnMut(Self::Item) -> bool,
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where
Self: Sized,
F: FnMut(&mut St, Self::Item) -> Option<B>,
[src]
Self: Sized,
F: FnMut(&mut St, Self::Item) -> Option<B>,
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P, Self::Item> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> bool,
fn skip(self, n: usize) -> Skip<Self> where
Self: Sized,
[src]
Self: Sized,
fn timeout(self, dur: Duration) -> Timeout<Self> where
Self: Stream + Sized,
[src]
Self: Stream + Sized,
fn try_fold<B, F, T, E>(self, init: T, f: F) -> ImplFuture<Result<T, E>> where
Self: Sized,
F: FnMut(B, Self::Item) -> Result<T, E>,
[src]
Self: Sized,
F: FnMut(B, Self::Item) -> Result<T, E>,
fn try_for_each<F, E>(self, f: F) -> ImplFuture<E> where
Self: Sized,
F: FnMut(Self::Item) -> Result<(), E>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<(), E>,
fn zip<U>(self, other: U) -> Zip<Self, U> where
Self: Sized + Stream,
U: Stream,
[src]
Self: Sized + Stream,
U: Stream,
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead (TODO)"]
fn collect<'a, B>(self) -> ImplFuture<B> where
Self: Sized + 'a,
B: FromStream<Self::Item>,
[src]
Self: Sized + 'a,
B: FromStream<Self::Item>,
fn merge<U>(self, other: U) -> Merge<Self, U> where
Self: Sized,
U: Stream<Item = Self::Item> + Sized,
[src]
Self: Sized,
U: Stream<Item = Self::Item> + Sized,
fn partial_cmp<S>(self, other: S) -> ImplFuture<Option<Ordering>> where
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
fn position<P>(self, predicate: P) -> ImplFuture<Option<usize>> where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> bool,
fn cmp<S>(self, other: S) -> ImplFuture<Ordering> where
Self: Sized + Stream,
S: Stream,
Self::Item: Ord,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: Ord,
fn ne<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Sized + Stream,
Self::Item: PartialEq<S::Item>,
[src]
Self: Sized + Stream,
S: Sized + Stream,
Self::Item: PartialEq<S::Item>,
fn ge<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
fn eq<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Sized + Stream,
Self::Item: PartialEq<S::Item>,
[src]
Self: Sized + Stream,
S: Sized + Stream,
Self::Item: PartialEq<S::Item>,
fn gt<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
fn le<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
fn lt<S>(self, other: S) -> ImplFuture<bool> where
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
[src]
Self: Sized + Stream,
S: Stream,
Self::Item: PartialOrd<S::Item>,
fn sum<'a, S>(self) -> ImplFuture<S> where
Self: Sized + Stream<Item = S> + 'a,
S: Sum,
[src]
Self: Sized + Stream<Item = S> + 'a,
S: Sum,
fn product<'a, P>(self) -> ImplFuture<P> where
Self: Sized + Stream<Item = P> + 'a,
P: Product,
[src]
Self: Sized + Stream<Item = P> + 'a,
P: Product,
impl Debug for ReadDir
[src]
Auto Trait Implementations
impl Send for ReadDir
impl Sync for ReadDir
impl Unpin for ReadDir
impl !UnwindSafe for ReadDir
impl !RefUnwindSafe for ReadDir
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,