#[non_exhaustive]pub struct PairConfig {
pub policy: Policy,
pub alpn: Alpn,
pub timeout: Option<Duration>,
}Expand description
The TLS side of pairing: the device’s own Policy and the ALPN that marks a pairing
connection. Nothing here sets a TLS version or suite; the policy does.
Plain data: start from Default and assign the fields. The type is [Describe], the one a
file or a form fills through a coqui_builder::Partial (alpn as text, timeout as a
duration such as 30 or 15m, or never), and #[non_exhaustive].
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.policy: PolicyThe policy both pairing configurations are built with. Default Policy::default.
alpn: AlpnThe pairing ALPN; only a connection that negotiated it carries a pairing exchange, and
only the configurations built here admit a key-proven certificate nobody trusts yet.
Default PAIR_ALPN.
timeout: Option<Duration>How long one side’s whole exchange may take, the TLS handshake included: the joiner’s
dial and finish together, the responder’s accept. None (the text never) waits
forever. Default 15 minutes, longer than the default device_ttl an operator has to
approve.