Struct FlatMapUnordered
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct FlatMapUnordered<St, U, F>
where
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U, { /* private fields */ }
Stream for the flat_map_unordered method.
Implementations
impl<St, U, F> FlatMapUnordered<St, U, F>
where
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
fn get_ref(&self) -> &StAcquires a reference to the underlying sink or stream that this combinator is pulling from.
fn get_mut(&mut self) -> &mut StAcquires a mutable reference to the underlying sink or stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the sink or stream which may otherwise confuse this combinator.
fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut St>Acquires a pinned mutable reference to the underlying sink or stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the sink or stream which may otherwise confuse this combinator.
fn into_inner(self) -> StConsumes this combinator, returning the underlying sink or stream.
Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.
Trait Implementations
impl<'__pin, St, U, F> Unpin for FlatMapUnordered<St, U, F>
where
PinnedFieldsOf<__Origin<'__pin, St, U, F>>: Unpin,
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
impl<St, U, F> Debug for FlatMapUnordered<St, U, F>
where
FlattenUnordered<Map<St, F>>: Debug,
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<St, U, F> FusedStream for FlatMapUnordered<St, U, F>
where
FlattenUnordered<Map<St, F>>: FusedStream,
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
fn is_terminated(&self) -> bool
impl<St, U, F> Stream for FlatMapUnordered<St, U, F>
where
FlattenUnordered<Map<St, F>>: Stream,
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
type Item = <FlattenUnorderedWithFlowController<Map<St, F>, ()> as Stream>::Item;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>fn size_hint(&self) -> (usize, Option<usize>)
impl<_Item, St, U, F> Sink<_Item> for FlatMapUnordered<St, U, F>
where
FlattenUnordered<Map<St, F>>: Sink<_Item>,
St: Stream,
U: Stream + Unpin,
F: FnMut(St::Item) -> U,
type Error = <FlattenUnorderedWithFlowController<Map<St, F>, ()> as Sink<_Item>>::Error;fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn start_send(self: Pin<&mut Self>, item: _Item) -> Result<(), Self::Error>fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Auto Trait Implementations
impl<St, U, F> !Freeze for FlatMapUnordered<St, U, F>
impl<St, U, F> !RefUnwindSafe for FlatMapUnordered<St, U, F>
impl<St, U, F> !UnwindSafe for FlatMapUnordered<St, U, F>
impl<St, U, F> Send for FlatMapUnordered<St, U, F>
where
FlattenUnorderedWithFlowController<Map<St, F>, ()>: Send,
impl<St, U, F> Sync for FlatMapUnordered<St, U, F>
where
FlattenUnorderedWithFlowController<Map<St, F>, ()>: Sync,
impl<St, U, F> UnsafeUnpin for FlatMapUnordered<St, U, F>
where
FlattenUnorderedWithFlowController<Map<St, F>, ()>: UnsafeUnpin,
Blanket Implementations
impl<S> TryStreamExt for FlatMapUnordered<St, U, F>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for FlatMapUnordered<St, U, F>
where
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<T> Any for FlatMapUnordered<St, U, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FlatMapUnordered<St, U, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FlatMapUnordered<St, U, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FlatMapUnordered<St, U, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for FlatMapUnordered<St, U, F>
where
T: Stream + ?Sized,
impl<T, Item> SinkExt<Item> for FlatMapUnordered<St, U, F>
where
T: Sink<Item> + ?Sized,
impl<T, U> Into<U> for FlatMapUnordered<St, U, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FlatMapUnordered<St, U, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FlatMapUnordered<St, U, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>