Struct futures_util::io::ReadHalf [−][src]
pub struct ReadHalf<T> { /* fields omitted */ }The readable half of an object returned from AsyncRead::split.
Implementations
impl<T: Unpin> ReadHalf<T>[src]
impl<T: Unpin> ReadHalf<T>[src]pub fn reunite(self, other: WriteHalf<T>) -> Result<T, ReuniteError<T>>[src]
Attempts to put the two “halves” of a split AsyncRead + AsyncWrite back
together. Succeeds only if the ReadHalf<T> and WriteHalf<T> are
a matching pair originating from the same call to AsyncReadExt::split.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for ReadHalf<T>
impl<T> Send for ReadHalf<T> where
T: Send,
T: Send,
impl<T> Sync for ReadHalf<T> where
T: Send,
T: Send,
impl<T> Unpin for ReadHalf<T>
impl<T> !UnwindSafe for ReadHalf<T>
Blanket Implementations
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized, [src]
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized, [src]fn chain<R>(self, next: R) -> Chain<Self, R> where
Self: Sized,
R: AsyncRead, [src]
Self: Sized,
R: AsyncRead,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>ⓘ where
Self: Unpin, [src]
Self: Unpin,
fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self>ⓘNotable traits for ReadVectored<'_, R>
impl<R: AsyncRead + ?Sized + Unpin> Future for ReadVectored<'_, R> type Output = Result<usize>; where
Self: Unpin, [src]
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self>ⓘ
Notable traits for ReadVectored<'_, R>
impl<R: AsyncRead + ?Sized + Unpin> Future for ReadVectored<'_, R> type Output = Result<usize>;Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>ⓘ where
Self: Unpin, [src]
Self: Unpin,
fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>ⓘ where
Self: Unpin, [src]
Self: Unpin,
fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self>ⓘNotable traits for ReadToString<'_, A>
impl<A: ?Sized> Future for ReadToString<'_, A> where
A: AsyncRead + Unpin, type Output = Result<usize>; where
Self: Unpin, [src]
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self>ⓘ
Notable traits for ReadToString<'_, A>
impl<A: ?Sized> Future for ReadToString<'_, A> where
A: AsyncRead + Unpin, type Output = Result<usize>;Self: Unpin,
fn split(self) -> (ReadHalf<Self>, WriteHalf<Self>) where
Self: AsyncWrite + Sized, [src]
Self: AsyncWrite + Sized,
fn take(self, limit: u64) -> Take<Self> where
Self: Sized, [src]
Self: Sized,