Struct ReadyChunks
#[must_use = "streams do nothing unless polled"]
pub struct ReadyChunks<St: Stream> { /* private fields */ }
Stream for the ready_chunks method.
Implementations
impl<St: Stream> ReadyChunks<St>
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: Stream> Unpin for ReadyChunks<St>
where
PinnedFieldsOf<__Origin<'__pin, St>>: Unpin,
impl<S, Item> Sink<Item> for ReadyChunks<S>
where
S: Stream + Sink<Item>,
type Error = <S 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>>
impl<St: Debug + Stream> Debug for ReadyChunks<St>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<St: Stream> FusedStream for ReadyChunks<St>
fn is_terminated(&self) -> bool
impl<St: Stream> Stream for ReadyChunks<St>
type Item = Vec<<St as Stream>::Item>;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<St> Freeze for ReadyChunks<St>
where
Fuse<St>: Freeze,
impl<St> RefUnwindSafe for ReadyChunks<St>
where
Fuse<St>: RefUnwindSafe,
impl<St> Send for ReadyChunks<St>
where
Fuse<St>: Send,
impl<St> Sync for ReadyChunks<St>
where
Fuse<St>: Sync,
impl<St> UnsafeUnpin for ReadyChunks<St>
where
Fuse<St>: UnsafeUnpin,
impl<St> UnwindSafe for ReadyChunks<St>
where
Fuse<St>: UnwindSafe,
Blanket Implementations
impl<T> Any for ReadyChunks<St>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ReadyChunks<St>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ReadyChunks<St>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ReadyChunks<St>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> StreamExt for ReadyChunks<St>
where
T: Stream + ?Sized,
impl<T, Item> SinkExt<Item> for ReadyChunks<St>
where
T: Sink<Item> + ?Sized,
impl<T, U> Into<U> for ReadyChunks<St>
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 ReadyChunks<St>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ReadyChunks<St>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>