Home
last modified time | relevance | path

Searched defs:TcpStream (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/mio/src/net/tcp/
Dstream.rs45 pub struct TcpStream { struct
46 inner: IoSource<net::TcpStream>, argument
49 impl TcpStream { implementation
52 pub fn connect(addr: SocketAddr) -> io::Result<TcpStream> { in connect()
69 pub fn from_std(stream: net::TcpStream) -> TcpStream { in from_std()
175 impl Read for TcpStream { implementation
185 impl<'a> Read for &'a TcpStream { implementation
195 impl Write for TcpStream { implementation
209 impl<'a> Write for &'a TcpStream { implementation
223 impl event::Source for TcpStream { implementation
[all …]
Dlistener.rs89 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept()
Dsocket.rs81 pub fn connect(self, addr: SocketAddr) -> io::Result<TcpStream> { in connect()
/external/rust/crates/tokio/src/net/tcp/
Dstream.rs72 impl TcpStream { impl
111 pub async fn connect<A: ToSocketAddrs>(addr: A) -> io::Result<TcpStream> { in connect()
132 async fn connect_addr(addr: SocketAddr) -> io::Result<TcpStream> { in connect_addr()
137 pub(crate) async fn connect_mio(sys: mio::net::TcpStream) -> io::Result<TcpStream> { in connect_mio()
155 pub(crate) fn new(connected: mio::net::TcpStream) -> io::Result<TcpStream> { in new()
189 pub fn from_std(stream: std::net::TcpStream) -> io::Result<TcpStream> { in from_std()
229 pub fn into_std(self) -> io::Result<std::net::TcpStream> { in into_std()
1041 impl TryFrom<std::net::TcpStream> for TcpStream { implementation
1055 impl AsyncRead for TcpStream { implementation
1065 impl AsyncWrite for TcpStream { implementation
[all …]
Dsplit_owned.rs70 ) -> Result<TcpStream, ReuniteError> { in reunite()
103 pub fn reunite(self, other: OwnedWriteHalf) -> Result<TcpStream, ReuniteError> { in reunite()
210 pub fn reunite(self, other: OwnedReadHalf) -> Result<TcpStream, ReuniteError> { in reunite()
269 fn as_ref(&self) -> &TcpStream { in as_ref()
275 fn as_ref(&self) -> &TcpStream { in as_ref()
Dsplit.rs183 fn as_ref(&self) -> &TcpStream { in as_ref()
189 fn as_ref(&self) -> &TcpStream { in as_ref()
Dlistener.rs149 pub async fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept()
166 pub fn poll_accept(&self, cx: &mut Context<'_>) -> Poll<io::Result<(TcpStream, SocketAddr)>> { in poll_accept()
Dsocket.rs441 pub async fn connect(self, addr: SocketAddr) -> io::Result<TcpStream> { in connect()
/external/rust/crates/tokio/tests/
Dtcp_stream.rs212 fn read_until_pending(stream: &mut TcpStream) { in read_until_pending()
225 fn write_until_pending(stream: &mut TcpStream) { in write_until_pending()
Dio_copy_bidirectional.rs40 F: FnMut(JoinHandle<io::Result<(u64, u64)>>, TcpStream, TcpStream) -> Fut, in symmetric() argument
/external/rust/crates/mio/src/sys/shell/
Dtcp.rs20 pub(crate) fn connect(_: TcpSocket, _addr: SocketAddr) -> io::Result<net::TcpStream> { in connect()
121 pub fn accept(_: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { in accept()
/external/rust/crates/tokio/docs/
Dreactor-refactor.md257 ### Removing all the `split()` functions
/external/rust/crates/gdbstub/examples/armv4t/
Dmain.rs16 fn wait_for_tcp(port: u16) -> DynResult<TcpStream> { in wait_for_tcp()
/external/rust/crates/gdbstub/examples/armv4t_multicore/
Dmain.rs16 fn wait_for_tcp(port: u16) -> DynResult<TcpStream> { in wait_for_tcp()
/external/rust/crates/tokio-stream/src/wrappers/
Dtcp_listener.rs35 ) -> Poll<Option<io::Result<TcpStream>>> { in poll_next()
/external/rust/crates/gdbstub/src/connection/impls/
Dtcpstream.rs5 impl Connection for TcpStream { implementation
/external/rust/crates/mio/examples/
Dtcp_server.rs102 connection: &mut TcpStream, in handle_connection_event()
/external/rust/crates/mio/src/sys/windows/
Dtcp.rs48 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect()
321 pub(crate) fn accept(listener: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { in accept()
/external/rust/crates/mio/src/sys/unix/
Dtcp.rs40 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect()
425 pub fn accept(listener: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { in accept()
/external/libchromeos-rs/src/
Dnet.rs130 pub fn connect<A: ToSocketAddrs>(self, addr: A) -> io::Result<TcpStream> { in connect()
/external/crosvm/sys_util/src/
Dnet.rs143 pub fn connect<A: ToSocketAddrs>(self, addr: A) -> io::Result<TcpStream> { in connect()
/external/perfetto/src/base/
Dunix_socket_unittest.cc423 TEST_F(UnixSocketTest, TcpStream) { in TEST_F() argument