pub struct Ack {
pub message_type: Option<String>,
pub ok: bool,
pub reason: Option<String>,
pub code: Option<u64>,
pub v: Option<u32>,
}Expand description
A parsed {"type":"...","ok":bool,...} control-channel envelope — the
server’s answer to any control message (first or update).
Fields§
§message_type: Option<String>Envelope discriminator. Only "ack" and "error" are valid; it is
optional at deserialization time so validation can turn a missing or
unknown value into a stable Error::BadFrame instead of exposing a
serde implementation detail.
ok: boolThe server’s error envelope carries no ok field. Defaulting to
false preserves it as a rejection so its code and reason remain
available to the caller.
reason: Option<String>Present when ok is false: why the message was rejected.
code: Option<u64>Present on a terminal error envelope. When supplied, the SDK preserves the same typed close/retry semantics as a QUIC application close.
v: Option<u32>Present only on the FIRST control message’s ack: the wire version the
server actually negotiated (min(client_max, SERVER_WIRE_VERSION)).