Skip to main content

PairConfigSetters

Trait PairConfigSetters 

Source
pub trait PairConfigSetters: Holds<PairConfig> + Sized {
    // Required methods
    fn policy(self, value: impl Into<Policy>) -> Self;
    fn alpn(self, value: impl Into<Alpn>) -> Self;
    fn timeout(self, value: impl Into<Option<Duration>>) -> Self;
}
Expand description

The typed setters of PairConfig, for any builder that holds its settings.

Required Methods§

Source

fn policy(self, value: impl Into<Policy>) -> Self

The policy both pairing configurations are built with. Default Policy::default.

Source

fn alpn(self, value: impl Into<Alpn>) -> Self

The 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.

Source

fn timeout(self, value: impl Into<Option<Duration>>) -> Self

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> PairConfigSetters for __B
where __B: Holds<PairConfig>,