Skip to main content

Module transport

Module transport 

Source
Expand description

Federation transport: an Op and target server in, raw response bytes out.

The Transport seam isolates the network behind a trait the tests mock; FederationTransport is the production impl.

Structsยง

FederationTransport ๐Ÿ”’

Traitsยง

Transport ๐Ÿ”’
Injection seam between the fetcher and the network. The production impl routes through federation::execute; tests substitute a scripted mock.

Functionsยง

batch_limit ๐Ÿ”’
Event count requested per batch op, defaulting to the federation default of 10 and saturating an oversized cap to the wire UInt.
require_event_id ๐Ÿ”’
require_latest_events ๐Ÿ”’
require_room_id ๐Ÿ”’
require_ts ๐Ÿ”’
to_bytes ๐Ÿ”’