Struct FlattenSink
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct FlattenSink<Fut, Si> { /* private fields */ }
Sink for the flatten_sink method.
Trait Implementations
impl<'__pin, Fut, Si> Unpin for FlattenSink<Fut, Si>
where
PinnedFieldsOf<__Origin<'__pin, Fut, Si>>: Unpin,
impl<Fut, Si> Debug for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Fut, Si> FusedStream for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: FusedStream,
fn is_terminated(&self) -> bool
impl<Fut, Si> Stream for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Stream,
type Item = <TryFlatten<Fut, Si> 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, Fut, Si> Sink<_Item> for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Sink<_Item>,
type Error = <TryFlatten<Fut, Si> 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<Fut, Si> Freeze for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Freeze,
impl<Fut, Si> RefUnwindSafe for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: RefUnwindSafe,
impl<Fut, Si> Send for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Send,
impl<Fut, Si> Sync for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: Sync,
impl<Fut, Si> UnsafeUnpin for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: UnsafeUnpin,
impl<Fut, Si> UnwindSafe for FlattenSink<Fut, Si>
where
TryFlatten<Fut, Si>: UnwindSafe,
Blanket Implementations
impl<S> TryStreamExt for FlattenSink<Fut, Si>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for FlattenSink<Fut, Si>
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 FlattenSink<Fut, Si>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FlattenSink<Fut, Si>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FlattenSink<Fut, Si>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FlattenSink<Fut, Si>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for FlattenSink<Fut, Si>
where
T: Stream + ?Sized,
impl<T, Item> SinkExt<Item> for FlattenSink<Fut, Si>
where
T: Sink<Item> + ?Sized,
impl<T, U> Into<U> for FlattenSink<Fut, Si>
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 FlattenSink<Fut, Si>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FlattenSink<Fut, Si>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>