pub struct PageIterator<P>where
P: Send,{ /* private fields */ }export-azure only.Expand description
Iterates over a collection pages of items from a service.
ยงExamples
Some clients may return a PageIterator if there are no items to iterate or multiple items to iterate.
The following example shows how you can also get a PageIterator from a Pager to iterate over pages instead of items.
The pattern for iterating pages is otherwise the same:
let client = SecretClient::new(
"https://my-vault.vault.azure.net",
credential.clone(),
None,
)?;
// Iterate each page of secrets using a PageIterator.
let mut pager = client.list_secret_properties(None)?.into_pages();
while let Some(page) = pager.try_next().await? {
let page = page.into_model()?;
for secret in page.value {
println!("{}", secret.resource_id()?.name);
}
}Implementationsยง
Sourceยงimpl<P> PageIterator<P>where
P: Send,
impl<P> PageIterator<P>where
P: Send,
Sourcepub fn new<F>(
make_request: F,
options: Option<PagerOptions<'static>>,
) -> PageIterator<P>where
F: Fn(PagerState, PagerOptions<'static>) -> Pin<Box<dyn Future<Output = Result<PagerResult<P>, Error>> + Send>> + Send + 'static,
pub fn new<F>(
make_request: F,
options: Option<PagerOptions<'static>>,
) -> PageIterator<P>where
F: Fn(PagerState, PagerOptions<'static>) -> Pin<Box<dyn Future<Output = Result<PagerResult<P>, Error>> + Send>> + Send + 'static,
Creates a PageIterator from a callback that will be called repeatedly to request each page.
This method expect a callback that accepts a single PagerState parameter, and returns a PagerResult value asynchronously.
The result will be an asynchronous stream of Result values.
The first time your callback is called, it will be called with PagerState::Initial, indicating no next link/continuation token is present.
Your callback must return one of:
Ok(result)- The request succeeded, and the providedPagerResultindicates the value to return and if there are more pages.Err(..)- The request failed. The error will be yielded to the stream, the stream will end, and the callback will not be called again.
ยงExamples
To page results using a next link:
#[derive(serde::Deserialize)]
struct ListItemsResult {
items: Vec<String>,
next_link: Option<String>,
}
let url = "https://example.com/my_paginated_api".parse().unwrap();
let mut base_req = Request::new(url, Method::Get);
let pager = PageIterator::new(move |next_link: PagerState, options: PagerOptions<'static>| {
// The callback must be 'static, so you have to clone and move any values you want to use.
let pipeline = pipeline.clone();
let api_version = api_version.clone();
let mut req = base_req.clone();
Box::pin(async move {
if let PagerState::More(next_link) = next_link {
let next_link: Url = next_link.try_into().expect("expected Url");
// Ensure the api-version from the client is appended.
let qp = next_link
.query_pairs()
.filter(|(name, _)| name.ne("api-version"));
req
.url_mut()
.query_pairs_mut()
.clear()
.extend_pairs(qp)
.append_pair("api-version", &api_version);
}
let resp = pipeline
.send(&options.context, &mut req, None)
.await?;
let (status, headers, body) = resp.deconstruct();
let result: ListItemsResult = json::from_json(&body)?;
let resp: Response<ListItemsResult> = RawResponse::from_bytes(status, headers, body).into();
Ok(match result.next_link {
Some(next_link) => PagerResult::More {
response: resp,
continuation: PagerContinuation::Link(next_link.parse()?),
},
None => PagerResult::Done { response: resp }
})
})
}, None);To page results using headers:
#[derive(serde::Deserialize)]
struct ListItemsResult {
items: Vec<String>,
}
let url = "https://example.com/my_paginated_api".parse().unwrap();
let mut base_req = Request::new(url, Method::Get);
let pager = PageIterator::new(move |continuation, options| {
// The callback must be 'static, so you have to clone and move any values you want to use.
let pipeline = pipeline.clone();
let mut req = base_req.clone();
Box::pin(async move {
if let PagerState::More(continuation) = continuation {
req.insert_header("x-ms-continuation", continuation.as_ref().to_string());
}
let resp: Response<ListItemsResult> = pipeline
.send(&options.context, &mut req, None)
.await?
.into();
Ok(PagerResult::from_response_header(resp, &HeaderName::from_static("x-ms-continuation")))
})
}, None);Sourcepub fn continuation(&self) -> Option<&PagerContinuation>
pub fn continuation(&self) -> Option<&PagerContinuation>
Gets the continuation token to pass to PagerOptions to resume paging in another iterator.
Sourcepub fn into_continuation(self) -> Option<PagerContinuation>
pub fn into_continuation(self) -> Option<PagerContinuation>
Gets the continuation token to pass to PagerOptions to resume paging in another iterator.
ยงExamples
This takes ownership of the iterator and can be useful when constructing a new iterator.
let pager1 = client.list_secret_properties(None)?.into_pages();
assert!(pager1.try_next().await?.is_some());
let options = SecretClientListSecretPropertiesOptions {
method_options: PagerOptions {
continuation: pager1.into_continuation(),
..Default::default()
},
..Default::default()
};
let pager2 = client.list_secret_properties(Some(options))?.into_pages();
assert!(pager2.try_next().await?.is_some());Trait Implementationsยง
Sourceยงimpl<P> Debug for PageIterator<P>where
P: Send,
impl<P> Debug for PageIterator<P>where
P: Send,
Sourceยงimpl<P> FusedStream for PageIterator<P>where
P: Send,
impl<P> FusedStream for PageIterator<P>where
P: Send,
Sourceยงfn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
true if the stream should no longer be polled.Sourceยงimpl<P> Stream for PageIterator<P>where
P: Send,
impl<P> Stream for PageIterator<P>where
P: Send,
Sourceยงfn poll_next(
self: Pin<&mut PageIterator<P>>,
cx: &mut Context<'_>,
) -> Poll<Option<<PageIterator<P> as Stream>::Item>>
fn poll_next( self: Pin<&mut PageIterator<P>>, cx: &mut Context<'_>, ) -> Poll<Option<<PageIterator<P> as Stream>::Item>>
None if the stream is exhausted. Read moreimpl<'pin, P> Unpin for PageIterator<P>
Auto Trait Implementationsยง
impl<P> Freeze for PageIterator<P>
impl<P> !RefUnwindSafe for PageIterator<P>
impl<P> Send for PageIterator<P>
impl<P> !Sync for PageIterator<P>
impl<P> UnsafeUnpin for PageIterator<P>
impl<P> !UnwindSafe for PageIterator<P>
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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<S> StreamExt for S
impl<S> StreamExt for S
Sourceยงfn next(&mut self) -> NextFuture<'_, Self>where
Self: Unpin,
fn next(&mut self) -> NextFuture<'_, Self>where
Self: Unpin,
Sourceยงfn try_next<T, E>(&mut self) -> TryNextFuture<'_, Self>
fn try_next<T, E>(&mut self) -> TryNextFuture<'_, Self>
Sourceยงfn count(self) -> CountFuture<Self>where
Self: Sized,
fn count(self) -> CountFuture<Self>where
Self: Sized,
Sourceยงfn map<T, F>(self, f: F) -> Map<Self, F>
fn map<T, F>(self, f: F) -> Map<Self, F>
Sourceยงfn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
Sourceยงfn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
fn then<F, Fut>(self, f: F) -> Then<Self, F, Fut>
Sourceยงfn filter_map<T, F>(self, f: F) -> FilterMap<Self, F>
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F>
Sourceยงfn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
n items of the stream. Read moreSourceยงfn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
Sourceยงfn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
n items of the stream. Read moreSourceยงfn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
Sourceยงfn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
stepth item. Read moreSourceยงfn chain<U>(self, other: U) -> Chain<Self, U>
fn chain<U>(self, other: U) -> Chain<Self, U>
Sourceยงfn collect<C>(self) -> CollectFuture<Self, C>
fn collect<C>(self) -> CollectFuture<Self, C>
Sourceยงfn try_collect<T, E, C>(self) -> TryCollectFuture<Self, C>
fn try_collect<T, E, C>(self) -> TryCollectFuture<Self, C>
Sourceยงfn partition<B, P>(self, predicate: P) -> PartitionFuture<Self, P, B>
fn partition<B, P>(self, predicate: P) -> PartitionFuture<Self, P, B>
predicate is true and those for which it is
false, and then collects them into two collections. Read moreSourceยงfn fold<T, F>(self, init: T, f: F) -> FoldFuture<Self, F, T>
fn fold<T, F>(self, init: T, f: F) -> FoldFuture<Self, F, T>
Sourceยงfn try_fold<T, E, F, B>(
&mut self,
init: B,
f: F,
) -> TryFoldFuture<'_, Self, F, B>
fn try_fold<T, E, F, B>( &mut self, init: B, f: F, ) -> TryFoldFuture<'_, Self, F, B>
Sourceยงfn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
Sourceยงfn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
(index, item). Read moreSourceยงfn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Sourceยงfn nth(&mut self, n: usize) -> NthFuture<'_, Self>where
Self: Unpin,
fn nth(&mut self, n: usize) -> NthFuture<'_, Self>where
Self: Unpin,
nth item of the stream. Read moreSourceยงfn last(self) -> LastFuture<Self>where
Self: Sized,
fn last(self) -> LastFuture<Self>where
Self: Sized,
Sourceยงfn find<P>(&mut self, predicate: P) -> FindFuture<'_, Self, P>
fn find<P>(&mut self, predicate: P) -> FindFuture<'_, Self, P>
Sourceยงfn find_map<F, B>(&mut self, f: F) -> FindMapFuture<'_, Self, F>
fn find_map<F, B>(&mut self, f: F) -> FindMapFuture<'_, Self, F>
Sourceยงfn position<P>(&mut self, predicate: P) -> PositionFuture<'_, Self, P>
fn position<P>(&mut self, predicate: P) -> PositionFuture<'_, Self, P>
Sourceยงfn for_each<F>(self, f: F) -> ForEachFuture<Self, F>
fn for_each<F>(self, f: F) -> ForEachFuture<Self, F>
Sourceยงfn try_for_each<F, E>(&mut self, f: F) -> TryForEachFuture<'_, Self, F>
fn try_for_each<F, E>(&mut self, f: F) -> TryForEachFuture<'_, Self, F>
Sourceยงfn zip<U>(self, other: U) -> Zip<Self, U>
fn zip<U>(self, other: U) -> Zip<Self, U>
Sourceยงfn unzip<A, B, FromA, FromB>(self) -> UnzipFuture<Self, FromA, FromB>
fn unzip<A, B, FromA, FromB>(self) -> UnzipFuture<Self, FromA, FromB>
Sourceยงfn race<S>(self, other: S) -> Race<Self, S>
fn race<S>(self, other: S) -> Race<Self, S>
std only.other stream, with no preference for either stream when both are ready. Read moreSourceยงimpl<T> StreamExt for T
impl<T> StreamExt for T
Sourceยงfn next(&mut self) -> Next<'_, Self>where
Self: Unpin,
fn next(&mut self) -> Next<'_, Self>where
Self: Unpin,
Sourceยงfn into_future(self) -> StreamFuture<Self>
fn into_future(self) -> StreamFuture<Self>
Sourceยงfn map<T, F>(self, f: F) -> Map<Self, F>
fn map<T, F>(self, f: F) -> Map<Self, F>
Sourceยงfn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
Sourceยงfn filter<Fut, F>(self, f: F) -> Filter<Self, Fut, F>
fn filter<Fut, F>(self, f: F) -> Filter<Self, Fut, F>
Sourceยงfn filter_map<Fut, T, F>(self, f: F) -> FilterMap<Self, Fut, F>
fn filter_map<Fut, T, F>(self, f: F) -> FilterMap<Self, Fut, F>
Sourceยงfn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
Sourceยงfn collect<C>(self) -> Collect<Self, C>
fn collect<C>(self) -> Collect<Self, C>
Sourceยงfn unzip<A, B, FromA, FromB>(self) -> Unzip<Self, FromA, FromB>
fn unzip<A, B, FromA, FromB>(self) -> Unzip<Self, FromA, FromB>
Sourceยงfn concat(self) -> Concat<Self>
fn concat(self) -> Concat<Self>
Sourceยงfn count(self) -> Count<Self>where
Self: Sized,
fn count(self) -> Count<Self>where
Self: Sized,
Sourceยงfn fold<T, Fut, F>(self, init: T, f: F) -> Fold<Self, Fut, T, F>
fn fold<T, Fut, F>(self, init: T, f: F) -> Fold<Self, Fut, T, F>
Sourceยงfn any<Fut, F>(self, f: F) -> Any<Self, Fut, F>
fn any<Fut, F>(self, f: F) -> Any<Self, Fut, F>
true if any element in stream satisfied a predicate. Read moreSourceยงfn all<Fut, F>(self, f: F) -> All<Self, Fut, F>
fn all<Fut, F>(self, f: F) -> All<Self, Fut, F>
true if all element in stream satisfied a predicate. Read moreSourceยงfn flatten(self) -> Flatten<Self>
fn flatten(self) -> Flatten<Self>
Sourceยงfn flatten_unordered(
self,
limit: impl Into<Option<usize>>,
) -> FlattenUnorderedWithFlowController<Self, ()>
fn flatten_unordered( self, limit: impl Into<Option<usize>>, ) -> FlattenUnorderedWithFlowController<Self, ()>
alloc only.Sourceยงfn flat_map_unordered<U, F>(
self,
limit: impl Into<Option<usize>>,
f: F,
) -> FlatMapUnordered<Self, U, F>
fn flat_map_unordered<U, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> FlatMapUnordered<Self, U, F>
alloc only.StreamExt::map but flattens nested Streams
and polls them concurrently, yielding items in any order, as they made
available. Read moreSourceยงfn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
StreamExt::fold that holds internal state
and produces a new stream. Read moreSourceยงfn skip_while<Fut, F>(self, f: F) -> SkipWhile<Self, Fut, F>
fn skip_while<Fut, F>(self, f: F) -> SkipWhile<Self, Fut, F>
true. Read moreSourceยงfn take_while<Fut, F>(self, f: F) -> TakeWhile<Self, Fut, F>
fn take_while<Fut, F>(self, f: F) -> TakeWhile<Self, Fut, F>
true. Read moreSourceยงfn take_until<Fut>(self, fut: Fut) -> TakeUntil<Self, Fut>
fn take_until<Fut>(self, fut: Fut) -> TakeUntil<Self, Fut>
Sourceยงfn for_each<Fut, F>(self, f: F) -> ForEach<Self, Fut, F>
fn for_each<Fut, F>(self, f: F) -> ForEach<Self, Fut, F>
Sourceยงfn for_each_concurrent<Fut, F>(
self,
limit: impl Into<Option<usize>>,
f: F,
) -> ForEachConcurrent<Self, Fut, F>
fn for_each_concurrent<Fut, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> ForEachConcurrent<Self, Fut, F>
alloc only.Sourceยงfn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
n items of the underlying stream. Read moreSourceยงfn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
n items of the underlying stream. Read moreSourceยงfn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
std only.Sourceยงfn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
alloc only.Sourceยงfn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>where
Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>where
Self: Sized + 'a,
alloc only.Sourceยงfn buffered(self, n: usize) -> Buffered<Self>
fn buffered(self, n: usize) -> Buffered<Self>
alloc only.Sourceยงfn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
alloc only.Sourceยงfn zip<St>(self, other: St) -> Zip<Self, St>
fn zip<St>(self, other: St) -> Zip<Self, St>
Sourceยงfn peekable(self) -> Peekable<Self>where
Self: Sized,
fn peekable(self) -> Peekable<Self>where
Self: Sized,
peek method. Read moreSourceยงfn chunks(self, capacity: usize) -> Chunks<Self>where
Self: Sized,
fn chunks(self, capacity: usize) -> Chunks<Self>where
Self: Sized,
alloc only.Sourceยงfn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>where
Self: Sized,
fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>where
Self: Sized,
alloc only.Sourceยงfn forward<S>(self, sink: S) -> Forward<Self, S>
fn forward<S>(self, sink: S) -> Forward<Self, S>
sink only.Sourceยงfn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
sink and alloc only.Sourceยงfn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Sourceยงfn left_stream<B>(self) -> Either<Self, B>
fn left_stream<B>(self) -> Either<Self, B>
Sourceยงfn right_stream<B>(self) -> Either<B, Self>
fn right_stream<B>(self) -> Either<B, Self>
Sourceยงfn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>where
Self: Unpin,
fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>where
Self: Unpin,
Stream::poll_next on Unpin
stream types.Sourceยงfn select_next_some(&mut self) -> SelectNextSome<'_, Self>where
Self: Unpin + FusedStream,
fn select_next_some(&mut self) -> SelectNextSome<'_, Self>where
Self: Unpin + FusedStream,
Sourceยงimpl<S> TryStreamExt for S
impl<S> TryStreamExt for S
Sourceยงfn err_into<E>(self) -> ErrInto<Self, E>
fn err_into<E>(self) -> ErrInto<Self, E>
Sourceยงfn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Sourceยงfn map_err<E, F>(self, f: F) -> MapErr<Self, F>
fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
Sourceยงfn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
f. Read moreSourceยงfn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
f. Read moreSourceยงfn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
Sourceยงfn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
Sourceยงfn into_stream(self) -> IntoStream<Self>where
Self: Sized,
fn into_stream(self) -> IntoStream<Self>where
Self: Sized,
Sourceยงfn try_next(&mut self) -> TryNext<'_, Self>where
Self: Unpin,
fn try_next(&mut self) -> TryNext<'_, Self>where
Self: Unpin,
Sourceยงfn try_for_each<Fut, F>(self, f: F) -> TryForEach<Self, Fut, F>
fn try_for_each<Fut, F>(self, f: F) -> TryForEach<Self, Fut, F>
Sourceยงfn try_skip_while<Fut, F>(self, f: F) -> TrySkipWhile<Self, Fut, F>
fn try_skip_while<Fut, F>(self, f: F) -> TrySkipWhile<Self, Fut, F>
true. Read moreSourceยงfn try_take_while<Fut, F>(self, f: F) -> TryTakeWhile<Self, Fut, F>
fn try_take_while<Fut, F>(self, f: F) -> TryTakeWhile<Self, Fut, F>
true. Read moreSourceยงfn try_for_each_concurrent<Fut, F>(
self,
limit: impl Into<Option<usize>>,
f: F,
) -> TryForEachConcurrent<Self, Fut, F>
fn try_for_each_concurrent<Fut, F>( self, limit: impl Into<Option<usize>>, f: F, ) -> TryForEachConcurrent<Self, Fut, F>
alloc only.Sourceยงfn try_collect<C>(self) -> TryCollect<Self, C>
fn try_collect<C>(self) -> TryCollect<Self, C>
Sourceยงfn try_chunks(self, capacity: usize) -> TryChunks<Self>where
Self: Sized,
fn try_chunks(self, capacity: usize) -> TryChunks<Self>where
Self: Sized,
alloc only.Sourceยงfn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>where
Self: Sized,
fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>where
Self: Sized,
alloc only.Sourceยงfn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
Sourceยงfn try_filter_map<Fut, F, T>(self, f: F) -> TryFilterMap<Self, Fut, F>
fn try_filter_map<Fut, F, T>(self, f: F) -> TryFilterMap<Self, Fut, F>
Sourceยงfn try_flatten_unordered(
self,
limit: impl Into<Option<usize>>,
) -> TryFlattenUnordered<Self>
fn try_flatten_unordered( self, limit: impl Into<Option<usize>>, ) -> TryFlattenUnordered<Self>
alloc only.Sourceยงfn try_flatten(self) -> TryFlatten<Self>
fn try_flatten(self) -> TryFlatten<Self>
Sourceยงfn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F>
fn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F>
Sourceยงfn try_concat(self) -> TryConcat<Self>
fn try_concat(self) -> TryConcat<Self>
Sourceยงfn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
alloc only.Sourceยงfn try_buffered(self, n: usize) -> TryBuffered<Self>
fn try_buffered(self, n: usize) -> TryBuffered<Self>
alloc only.Sourceยงfn try_poll_next_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Self::Ok, Self::Error>>>where
Self: Unpin,
fn try_poll_next_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Self::Ok, Self::Error>>>where
Self: Unpin,
TryStream::try_poll_next on Unpin
stream types.Sourceยงfn into_async_read(self) -> IntoAsyncRead<Self>
fn into_async_read(self) -> IntoAsyncRead<Self>
io and std only.AsyncBufRead. Read moreSourceยงfn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
Err is encountered or if an Ok item is found
that does not satisfy the predicate. Read more