Skip to main content

Crate microsandbox_agent_client

Crate microsandbox_agent_client 

Source
Expand description

Transport-agnostic client for the microsandbox agent protocol.

This crate owns the low-level client layer: handshakes, correlation IDs, request/stream routing, message encoding, and transport adapters. High-level SDK crates remain responsible for sandbox lifecycle and name resolution.

No transport is enabled by default. Enable uds for local microsandbox relay sockets, or stream to drive the client over any AsyncRead + AsyncWrite byte stream (e.g. a caller-owned, pre-authenticated transport adapted to bytes).

Re-exports§

pub use client::AgentClient;
pub use client::AgentProtocol;
pub use error::AgentClientError;
pub use error::AgentClientResult;
pub use message::EncodedMessage;
pub use message::IntoOutboundMessage;
pub use message::OutboundMessage;
pub use message::TypedMessage;
pub use stream::AgentStream;
pub use transport::AgentTransport;
pub use transport::TransportPacket;

Modules§

client
Client for connecting to a microsandbox agent relay.
error
Error type for the agent client.
message
Outbound agent message builders.
stream
Generic stream handle scaffold.
transport
Transport packet abstraction for agent protocol frames.
transports
Transport adapters that can be enabled with crate features.