pub(crate) struct TcpSockFd(RawFd);
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and Linux only.Expand description
A wrapper over the file descriptor of a TCP socket.
Returned from various StreamOps::new_handle
impls.
Tuple Fields§
§0: RawFd
Implementations§
Trait Implementations§
Source§impl StreamOps for TcpSockFd
impl StreamOps for TcpSockFd
impl Copy for TcpSockFd
Auto Trait Implementations§
impl Freeze for TcpSockFd
impl RefUnwindSafe for TcpSockFd
impl Send for TcpSockFd
impl Sync for TcpSockFd
impl Unpin for TcpSockFd
impl UnwindSafe for TcpSockFd
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