Skip to main content

Crate microsandbox_protocol_client

Crate microsandbox_protocol_client 

Source
Expand description

Low-level framed connections, independent of the application protocol.

Structs§

CborEnvelopeCodec
Standard {v,t,p} CBOR envelope with an open message namespace.
Client
Cheap shared handle to one reader, writer, allocator, and set of subscriptions.
ClientError
Error with conservative delivery state. Diagnostics never include payloads.
ClientLimits
Hard resource bounds for one framed connection.
ConnectOptions
Connection configuration. Builders have no I/O or background side effects.
EncodedMessage
Already-encoded application payload, separate from the outer envelope.
Established
Successfully established transport and immutable protocol metadata.
IdRange
Nonzero ID range; the wider upper bound represents the entire u32 space.
LocalConnector
Native local endpoint supplied by the caller’s existing endpoint helper.
Message
Decoded message with its original frame retained for unknown fields/forwarding.
OutboundMessage
Complete envelope and flags, before the router assigns a correlation ID.
RawFrame
A frame with the binary header parsed but the body left untouched.
RawStream
Opaque frame stream whose lifetime retains its connection and ID lease.
RawStreamReceiver
Sole consuming raw receiver. Dropping it disables sends and starts draining.
RawStreamSender
Cloneable send permission bound to one specific lease, not merely its number.
RequestOptions
Options for one request or stream-opening attempt.
SendMetadata
Protocol-generated envelope generation and frame flags.
Stream
Decoded message stream over the same opaque router and lease.
StreamReceiver
Sole decoded receiver; no competing reader is created by conversion/split.
StreamSender
Cloneable native-message sender bound to an owned stream lease.
TypedMessage
Native payload paired with an explicit wire name; this is not schema proof.

Enums§

Delivery
Whether this attempt crossed writer admission; never a retry instruction.
ErrorKind
Transport/router failure, independent of application response errors.

Traits§

ByteTransport
Owned transport; reader and writer progress independently after splitting.
Connector
Opens independent transports, without negotiation or application parsing.
EnvelopeCodec
Envelope semantics chosen during setup. Raw routing never invokes this.
IntoOutboundMessage
Prepare a named message using one protocol’s availability gates and codec.
Protocol
Protocol-specific setup and message metadata, leaving routing to Client.
Request
Pair a prepared protocol request with checked terminal-response decoding.

Type Aliases§

BoxFuture
Owned Send future used at the public protocol/connector boundary.
BoxTransport
Erased byte transport for external protocol and connector implementations.
ClientResult
Result shared by generic protocol and transport implementations.