pub struct ReadHalf<T> { /* private fields */ }
Expand description
The readable half of a value returned from split
.
Implementations
sourceimpl<T> ReadHalf<T>
impl<T> ReadHalf<T>
sourcepub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool
pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool
Checks if this ReadHalf
and some WriteHalf
were split from the same
stream.
Trait Implementations
impl<T: Send> Send for ReadHalf<T>
impl<T: Sync> Sync for ReadHalf<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for ReadHalf<T>
impl<T> Unpin for ReadHalf<T>
impl<T> !UnwindSafe for ReadHalf<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more