[−][src]Struct futures_test::io::read::Limited
I/O wrapper that limits the number of bytes written or read on each call.
See the limited
and limited_write
methods.
Methods
impl<Io> Limited<Io>
[src][−]
pub fn get_ref(&self) -> &Io
[src][−]
Acquires a reference to the underlying I/O object that this adaptor is wrapping.
pub fn get_mut(&mut self) -> &mut Io
[src][−]
Acquires a mutable reference to the underlying I/O object that this adaptor is wrapping.
pub fn get_pin_mut<'a>(self: Pin<&'a mut Self>) -> Pin<&'a mut Io>
[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<Io: Unpin> Unpin for Limited<Io>
[src]
impl<Io: Debug> Debug for Limited<Io>
[src][+]
impl<R: AsyncRead> AsyncRead for Limited<R>
[src][+]
impl<W: AsyncWrite> AsyncWrite for Limited<W>
[src][+]
impl<R: AsyncBufRead> AsyncBufRead for Limited<R>
[src][+]
Auto Trait Implementations
impl<Io> Send for Limited<Io> where
Io: Send,
Io: Send,
impl<Io> Sync for Limited<Io> where
Io: Sync,
Io: Sync,
impl<Io> UnwindSafe for Limited<Io> where
Io: UnwindSafe,
Io: UnwindSafe,
impl<Io> RefUnwindSafe for Limited<Io> where
Io: RefUnwindSafe,
Io: RefUnwindSafe,
Blanket Implementations
impl<R> AsyncReadTestExt for R where
R: AsyncRead,
[src][+]
R: AsyncRead,
impl<W> AsyncWriteTestExt for W where
W: AsyncWrite,
[src][+]
W: AsyncWrite,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
[src][+]
R: AsyncRead + ?Sized,
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src][+]
W: AsyncWrite + ?Sized,
impl<R> AsyncBufReadExt for R where
R: AsyncBufRead + ?Sized,
[src][+]
R: AsyncBufRead + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,