Skip to main content

TlsSettingsSetters

Trait TlsSettingsSetters 

Source
pub trait TlsSettingsSetters: Holds<TlsSettings> + Sized {
    // Required methods
    fn alpn(self, value: impl Into<Vec<Alpn>>) -> Self;
    fn policy(self, value: impl Into<Policy>) -> Self;
}
Expand description

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

Required Methods§

Source

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

The application protocols offered, most preferred first, as text (h2, coqui/1), each 1 to 255 bytes.

Source

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

The policy configurations are built under.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> TlsSettingsSetters for __B
where __B: Holds<TlsSettings>,