[−][src]Struct tokio::net::tcp::split::TcpStreamReadHalf
Read half of a TcpStream
.
Methods
impl TcpStreamReadHalf
[src]
pub fn reunite(
self,
other: TcpStreamWriteHalf
) -> Result<TcpStream, ReuniteError>
[src]
self,
other: TcpStreamWriteHalf
) -> Result<TcpStream, ReuniteError>
Attempts to put the two "halves" of a TcpStream
back together and
recover the original stream. Succeeds only if the two "halves"
originated from the same call to TcpStream::split
.
Trait Implementations
impl AsRef<TcpStream> for TcpStreamReadHalf
[src]
impl Debug for TcpStreamReadHalf
[src]
impl AsyncRead for TcpStreamReadHalf
[src]
unsafe fn prepare_uninitialized_buffer(&self, &mut [u8]) -> bool
[src]
fn poll_read(
self: Pin<&mut TcpStreamReadHalf>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut TcpStreamReadHalf>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize, Error>>
fn poll_read_buf<B>(
self: Pin<&mut TcpStreamReadHalf>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize, Error>> where
B: BufMut,
[src]
self: Pin<&mut TcpStreamReadHalf>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize, Error>> where
B: BufMut,
Auto Trait Implementations
impl Send for TcpStreamReadHalf
impl Unpin for TcpStreamReadHalf
impl Sync for TcpStreamReadHalf
impl !UnwindSafe for TcpStreamReadHalf
impl !RefUnwindSafe for TcpStreamReadHalf
Blanket Implementations
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
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,
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: AsyncRead,
[src]
R: AsyncRead,
Creates an adaptor which will chain this stream with another. Read more
fn copy<W>(&'a mut self, dst: &'a mut W) -> Copy<'a, Self, W> where
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized,
[src]
Self: Unpin,
W: AsyncWrite + Unpin + ?Sized,
Copy all data from self
into the provided AsyncWrite
. Read more
fn read(&'a mut self, dst: &'a mut [u8]) -> Read<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Read data into the provided buffer. Read more
fn read_exact(&'a mut self, dst: &'a mut [u8]) -> ReadExact<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Read exactly the amount of data needed to fill the provided buffer.
fn read_to_end(&'a mut self, dst: &'a mut Vec<u8>) -> ReadToEnd<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Read all bytes until EOF in this source, placing them into dst
. Read more
fn read_to_string(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
Read all bytes until EOF in this source, placing them into dst
. Read more
fn take(self, limit: u64) -> Take<Self>
[src]
Creates an AsyncRead adapter which will read at most limit
bytes from the underlying reader. Read more