pub struct TcpConnection { /* private fields */ }Implementations§
Source§impl TcpConnection
impl TcpConnection
pub async fn new( socket_addr: impl Into<SocketAddr>, ) -> Result<TcpConnection, Error>
Trait Implementations§
Source§impl Connection for TcpConnection
impl Connection for TcpConnection
async fn accept( &mut self, ) -> Result<(impl AsyncRead + Unpin + 'static, impl AsyncWrite + Unpin + 'static, SocketAddr), Error>
Auto Trait Implementations§
impl !Freeze for TcpConnection
impl RefUnwindSafe for TcpConnection
impl Send for TcpConnection
impl Sync for TcpConnection
impl Unpin for TcpConnection
impl UnwindSafe for TcpConnection
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