[−][src]Struct tokio_io::split::ReadHalf
The readable half of a value returned from split.
Methods
impl<T> ReadHalf<T>[src]
pub fn unsplit(self, wr: WriteHalf<T>) -> T[src]
Reunite with a previously split WriteHalf.
Panics
If this ReadHalf and the given WriteHalf do not originate from the
same split operation this method will panic.
Trait Implementations
impl<T: AsyncRead> AsyncRead for ReadHalf<T>[src]
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_buf<B: BufMut>(
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut B
) -> Poll<Result<usize>>
unsafe fn prepare_uninitialized_buffer(&self, buf: &mut [u8]) -> bool[src]
impl<T: Send> Send for ReadHalf<T>[src]
impl<T: Sync> Sync for ReadHalf<T>[src]
impl<T: Debug> Debug for ReadHalf<T>[src]
Auto Trait Implementations
impl<T> Unpin for ReadHalf<T>
impl<T> !RefUnwindSafe for ReadHalf<T>
impl<T> !UnwindSafe for ReadHalf<T>
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,