pub struct TcpStream { /* private fields */ }Implementations§
Trait Implementations§
Source§impl FromRawFd for TcpStream
impl FromRawFd for TcpStream
Source§unsafe fn from_raw_fd(_fd: RawFd) -> Self
unsafe fn from_raw_fd(_fd: RawFd) -> Self
Constructs a new instance of
Self from the given raw file
descriptor. Read moreSource§impl IntoHalves for TcpStream
impl IntoHalves for TcpStream
type Read = TcpReadHalf
type Write = TcpWriteHalf
Source§fn into_halves(self) -> (Self::Read, Self::Write)
fn into_halves(self) -> (Self::Read, Self::Write)
Split this into an owned read half and an owned write half.
Auto Trait Implementations§
impl Freeze for TcpStream
impl RefUnwindSafe for TcpStream
impl Send for TcpStream
impl Sync for TcpStream
impl Unpin for TcpStream
impl UnwindSafe for TcpStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more