[][src]Struct futures_lite::io::Chain

pub struct Chain<R1, R2> { /* fields omitted */ }

Reader for the AsyncReadExt::chain() method.

Implementations

impl<R1, R2> Chain<R1, R2>[src]

pub fn get_ref(&self) -> (&R1, &R2)[src]

Gets references to the underlying readers.

Examples

use futures_lite::io::{AsyncReadExt, Cursor};

let r1 = Cursor::new(b"hello");
let r2 = Cursor::new(b"world");

let reader = r1.chain(r2);
let (r1, r2) = reader.get_ref();

pub fn get_mut(&mut self) -> (&mut R1, &mut R2)[src]

Gets mutable references to the underlying readers.

Examples

use futures_lite::io::{AsyncReadExt, Cursor};

let r1 = Cursor::new(b"hello");
let r2 = Cursor::new(b"world");

let mut reader = r1.chain(r2);
let (r1, r2) = reader.get_mut();

pub fn into_inner(self) -> (R1, R2)[src]

Unwraps the adapter, returning the underlying readers.

Examples

use futures_lite::io::{AsyncReadExt, Cursor};

let r1 = Cursor::new(b"hello");
let r2 = Cursor::new(b"world");

let reader = r1.chain(r2);
let (r1, r2) = reader.into_inner();

Trait Implementations

impl<R1: AsyncBufRead, R2: AsyncBufRead> AsyncBufRead for Chain<R1, R2>[src]

impl<R1: AsyncRead, R2: AsyncRead> AsyncRead for Chain<R1, R2>[src]

impl<R1: Debug, R2: Debug> Debug for Chain<R1, R2>[src]

impl<'__pin, R1, R2> Unpin for Chain<R1, R2> where
    __Origin<'__pin, R1, R2>: Unpin
[src]

Auto Trait Implementations

impl<R1, R2> RefUnwindSafe for Chain<R1, R2> where
    R1: RefUnwindSafe,
    R2: RefUnwindSafe

impl<R1, R2> Send for Chain<R1, R2> where
    R1: Send,
    R2: Send

impl<R1, R2> Sync for Chain<R1, R2> where
    R1: Sync,
    R2: Sync

impl<R1, R2> UnwindSafe for Chain<R1, R2> where
    R1: UnwindSafe,
    R2: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncBufReadExt for R where
    R: AsyncBufRead + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.