#[non_exhaustive]pub struct Connected {
pub session_id: String,
pub continuity: Continuity,
pub keepalive: Duration,
pub request_limit_bytes: u64,
}Expand description
The session is bound to a server and streaming.
§Debug redacts the session identifier
The identifier is a bearer value: LS_session is what a control
request or a rebind names the session with
[docs/spec/03-requests.md §5.1], so anything holding it can act on the
session. This crate therefore hands it to you — it is a public field, and
correlating it with a server-side log is exactly what it is for — but never
puts it in a log line or a {:?} of its own accord. Print
Connected::session_id yourself when you want it somewhere.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe server’s identifier for this session. Opaque, and treated as sensitive: see the type’s own documentation before logging it.
continuity: ContinuityWhat this bind means for state derived from an earlier one.
keepalive: DurationThe longest the server will let the connection go quiet before sending
something, even if there is no data
[docs/spec/02-session-lifecycle.md §8.1].
This is the value the server chose, not the one you asked for, and it is what this client’s own liveness check is built from.
request_limit_bytes: u64The largest request, in bytes, the server will accept on this session
[docs/spec/02-session-lifecycle.md §3.1].