pub struct Socket { /* private fields */ }Implementations§
Source§impl Socket
A socket that represents a unique TCP connection between a server and client.
impl Socket
A socket that represents a unique TCP connection between a server and client.
The Socket object itself satisfies Sync and Send, which means it can
be safely called within an async future.
To close a TCP connection that is no longer needed, simply drop this object out of scope.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Socket
impl !RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnsafeUnpin for Socket
impl !UnwindSafe for Socket
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