docs.rs failed to build arcbox-transport-0.4.17
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:
arcbox-transport-0.0.1-alpha.1
arcbox-transport
Transport abstractions for ArcBox host/guest communication.
Overview
This crate provides:
UnixTransportfor Unix domain socketsVsockTransportfor virtio-vsock endpoints (VsockAddr)VsockStreamfor raw async byte streams backed by connected vsock fdsTransport/TransportListenertraits for transport-agnostic code
Usage
use ;
use VsockAddr;
use Bytes;
let mut unix = new;
unix.connect.await?;
unix.send.await?;
let mut vsock = new;
vsock.connect.await?;
vsock.send.await?;
Raw Vsock Streams
Use VsockTransport for framed ArcBox RPC traffic. Use VsockStream when a
caller already owns a connected fd and needs a transparent AsyncRead + AsyncWrite byte stream, such as HTTP proxying or bidirectional tunnels.
use ;
use OwnedFd;
VsockShutdown controls what happens when Tokio asks to shut down the write
half:
HalfClosecallsshutdown(SHUT_WR)and is the default for normal streams.CloseOnDropOnlytreats shutdown as a no-op and closes only on drop. Use this for macOS vsock tunnels where half-close tears down the full connection.
Port Notes
1024is the guest agent RPC port used byarcbox-agent.- Additional ports are protocol-specific (for example guest Docker API proxying) and are configured by higher-level runtime components.
License
MIT OR Apache-2.0