Module remote
Expand description
The client half of a network peer, over a transport the caller supplies.
Exchange is the transport: one request’s bytes out on a Route, one
reply’s bytes back. RemoteSyncPeer is the SyncPeer over it, encoding
and decoding the envelopes serve_sync answers, and
refusing a push over the far side’s declared limits before it is sent, in
the order StoreSyncPeer refuses one. Nothing
here names HTTP: an HTTP client, a Durable Object stub, a socket, or a
function call into serve_sync in the same process are all an Exchange.
Structs§
- Remote
Sync Peer - A
SyncPeerwhose far side is reached through anExchange.
Enums§
- Remote
Error - How a
RemoteSyncPeerfails: its transportE, bytes it could not write or read, or a push over the limits it declared, which it refuses without sending. The limit arms mirrorStorePeerError’s, so a runner reads one shape.
Traits§
- Exchange
- Sends one request on a route and returns the reply: one round trip.
- Send
Exchange - Sends one request on a route and returns the reply: one round trip.