pub struct Chain<T, U> { /* private fields */ }
Expand description
A buf stream that sequences two buf streams together.
Chain
values are produced by the chain
function on BufStream
.
Trait Implementations
sourceimpl<T, U> BufStream for Chain<T, U> where
T: BufStream,
U: BufStream<Error = T::Error>,
impl<T, U> BufStream for Chain<T, U> where
T: BufStream,
U: BufStream<Error = T::Error>,
Auto Trait Implementations
impl<T, U> RefUnwindSafe for Chain<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Chain<T, U> where
T: Send,
U: Send,
impl<T, U> Sync for Chain<T, U> where
T: Sync,
U: Sync,
impl<T, U> Unpin for Chain<T, U> where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for Chain<T, U> where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BufStreamExt for T where
T: BufStream,
impl<T> BufStreamExt for T where
T: BufStream,
sourcefn chain<T>(self, other: T) -> Chain<Self, T> where
Self: Sized,
T: BufStream<Error = Self::Error>,
fn chain<T>(self, other: T) -> Chain<Self, T> where
Self: Sized,
T: BufStream<Error = Self::Error>,
Takes two buf streams and creates a new buf stream over both in sequence. Read more
sourcefn collect<T>(self) -> Collect<Self, T> where
Self: Sized,
T: FromBufStream<Self::Item>,
fn collect<T>(self) -> Collect<Self, T> where
Self: Sized,
T: FromBufStream<Self::Item>,
Consumes all data from self
, storing it in byte storage of type T
. Read more
sourcefn limit(self, amount: u64) -> Limit<Self> where
Self: Sized,
fn limit(self, amount: u64) -> Limit<Self> where
Self: Sized,
Limit the number of bytes that the stream can yield. Read more
sourcefn into_stream(self) -> IntoStream<Self> where
Self: Sized,
fn into_stream(self) -> IntoStream<Self> where
Self: Sized,
Creates a Stream
from a BufStream
. Read more