[][src]Struct futures_test::io::read::Limited

pub struct Limited<Io> { /* fields omitted */ }

I/O wrapper that limits the number of bytes written or read on each call.

See the limited and limited_write methods.

Implementations

impl<Io> Limited<Io>[src]

pub fn get_ref(&self) -> &Io

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Acquires a reference to the underlying I/O object that this adaptor is wrapping.

pub fn get_mut(&mut self) -> &mut Io

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Acquires a mutable reference to the underlying I/O object that this adaptor is wrapping.

pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Io>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Acquires a pinned mutable reference to the underlying I/O object that this adaptor is wrapping.

pub fn into_inner(self) -> Io[src]

Consumes this adaptor returning the underlying I/O object.

Trait Implementations

impl<R: AsyncBufRead> AsyncBufRead for Limited<R>[src]

impl<R: AsyncRead> AsyncRead for Limited<R>[src]

impl<W: AsyncWrite> AsyncWrite for Limited<W>[src]

impl<Io: Debug> Debug for Limited<Io>[src]

impl<'pin, Io> Unpin for Limited<Io> where
    __Limited<'pin, Io>: Unpin
[src]

Auto Trait Implementations

impl<Io> RefUnwindSafe for Limited<Io> where
    Io: RefUnwindSafe
[src]

impl<Io> Send for Limited<Io> where
    Io: Send
[src]

impl<Io> Sync for Limited<Io> where
    Io: Sync
[src]

impl<Io> UnwindSafe for Limited<Io> where
    Io: UnwindSafe
[src]

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<R> AsyncReadTestExt for R where
    R: AsyncRead
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<W> AsyncWriteTestExt for W where
    W: AsyncWrite
[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.