Struct Chain
#[must_use = "streams do nothing unless polled"]
pub struct Chain<T, U> { /* private fields */ }
Stream for the chain method.
Implementations
impl<T, U> Chain<T, U>
where
T: AsyncRead,
U: AsyncRead,
fn get_ref(&self) -> (&T, &U)Gets references to the underlying readers in this
Chain.fn get_mut(&mut self) -> (&mut T, &mut U)Gets mutable references to the underlying readers in this
Chain.Care should be taken to avoid modifying the internal I/O state of the underlying readers as doing so may corrupt the internal state of this
Chain.fn get_pin_mut(self: Pin<&mut Self>) -> (Pin<&mut T>, Pin<&mut U>)Gets pinned mutable references to the underlying readers in this
Chain.Care should be taken to avoid modifying the internal I/O state of the underlying readers as doing so may corrupt the internal state of this
Chain.fn into_inner(self) -> (T, U)Consumes the
Chain, returning the wrapped readers.
Trait Implementations
impl<'__pin, T, U> Unpin for Chain<T, U>
where
PinnedFieldsOf<__Origin<'__pin, T, U>>: Unpin,
impl<T, U> AsyncBufRead for Chain<T, U>
where
T: AsyncBufRead,
U: AsyncBufRead,
fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<&[u8]>>fn consume(self: Pin<&mut Self>, amt: usize)
impl<T, U> AsyncRead for Chain<T, U>
where
T: AsyncRead,
U: AsyncRead,
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>) -> Poll<Result<()>>
impl<T, U> Debug for Chain<T, U>
where
T: Debug,
U: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T, U> Freeze for Chain<T, U>
where
T: Freeze,
U: Freeze,
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> UnsafeUnpin for Chain<T, U>
where
T: UnsafeUnpin,
U: UnsafeUnpin,
impl<T, U> UnwindSafe for Chain<T, U>
where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
impl<R> AsyncBufReadExt for Chain<T, U>
where
R: AsyncBufRead + ?Sized,
impl<R> AsyncReadExt for Chain<T, U>
where
R: AsyncRead + ?Sized,
impl<T> Any for Chain<T, U>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Chain<T, U>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Chain<T, U>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Chain<T, U>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Chain<T, U>
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 Chain<T, U>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Chain<T, U>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>