docs.rs failed to build geiserx_ts_netstack_smoltcp_socket-0.57.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
geiserx_ts_netstack_smoltcp_socket-0.57.3
ts_netstack_smoltcp_socket (netsock)
Ergonomic sockets API layer built around [ts_netstack_smoltcp_core].
The idea is to take the command [Channel][ts_netstack_smoltcp_core::Channel] and use
it to expose an API that looks something like std::net or tokio::net, i.e. with
UdpSocket, TcpStream, TcpListener, etc. This is implemented here by internalizing
the Channel into each socket type so that they can all send commands on their own
behalf.
Socket creation is implemented by [CreateSocket] as a set of extension methods on
T where T: [HasChannel][ts_netstack_smoltcp_core::HasChannel].
Example
Compare the example in [ts_netstack_smoltcp_core]:
use SocketAddr;
use Bytes;
use Instant;
use Medium;
use ;
use CreateSocket;
extern crate ts_netstack_smoltcp_core as netcore;
extern crate ts_netstack_smoltcp_socket as netsock;