pub struct TcpStream { /* private fields */ }Implementations§
Source§impl TcpStream
impl TcpStream
pub fn connect(addr: SocketAddr) -> Option<Self>
pub fn close(&mut self)
pub fn read(&self, buf: &mut [u8]) -> Option<usize>
pub fn write(&self, buf: &[u8]) -> Option<usize>
pub fn peek(&self, buf: &mut [u8]) -> Option<usize>
pub fn shutdown(&self, how: Shutdown) -> bool
pub fn set_nodelay(&self, nodelay: bool) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpStream
impl RefUnwindSafe for TcpStream
impl Send for TcpStream
impl Sync for TcpStream
impl Unpin for TcpStream
impl UnsafeUnpin 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