Skip to content

Struct client::SessionConfig

zaun_community_protocol::client::SessionConfig · Struct

pub struct SessionConfig { … }

Everything a super::Session needs besides the transport.

The host the welcome must come from.

The community the host must prove (invitation target, or the bound community). None only for an unbound connection with no target (before community.create).

The connection’s binding from an earlier session, if any (restart persistence).

The caller’s stored anti-rollback state for the community.

The full rotation chain from the genesis key, if the caller has it.

held_pair: Option<(SignedJson, SignedJson)>

Section titled “held_pair: Option<(SignedJson, SignedJson)>”

The signed descriptor and delegation of the community, as verified before (a stored crate::signed::ValidPair): the hello names it and the host may leave it out of the welcome; it is then verified again as if the host had sent it.

The versions offered in session.hello.

The capabilities offered in session.hello.

Per-message text budget for framing, from the transport adapter.

Retry schedule.

Ack after this many received frames.

Ack after this long while frames arrive.

pub fn new(host: ExpectedHost, community_id: Option<CommunityId>) -> Self

Defaults for host and community_id: version 1, frag, the the protocol schedule and the the protocol ack cadence (8 frames / 30 s).

Clone, Debug

Full rustdoc page