[][src]Struct quiche::Config

pub struct Config { /* fields omitted */ }

Stores configuration shared between multiple connections.

Methods

impl Config[src]

pub fn new(version: u32) -> Result<Config>[src]

Creates a config object with the given version.

pub fn load_cert_chain_from_pem_file(&mut self, file: &str) -> Result<()>[src]

Configures the given certificate chain.

The content of file is parsed as a PEM-encoded leaf certificate, followed by optional intermediate certificates.

pub fn load_priv_key_from_pem_file(&mut self, file: &str) -> Result<()>[src]

Configures the given private key.

The content of file is parsed as a PEM-encoded private key.

pub fn verify_peer(&mut self, verify: bool)[src]

Configures whether to verify the peer's certificate.

pub fn log_keys(&mut self)[src]

Enables logging of secrets.

A connection's cryptographic secrets will be logged in the keylog format in the file pointed to by the SSLKEYLOGFILE environment variable.

pub fn set_application_protos(&mut self, protos: &[u8]) -> Result<()>[src]

Configures the list of supported application protocols.

The list of protocols protos must be in wire-format (i.e. a series of non-empty, 8-bit length-prefixed strings).

On the client this configures the list of protocols to send to the server as part of the ALPN extension.

On the server this configures the list of supported protocols to match against the client-supplied list.

Examples:

config.set_application_protos(b"\x08http/1.1\x08http/0.9");

pub fn set_idle_timeout(&mut self, v: u64)[src]

Sets the idle_timeout transport parameter.

pub fn set_stateless_reset_token(&mut self, v: &[u8; 16])[src]

Sets the stateless_reset_token transport parameter.

pub fn set_max_packet_size(&mut self, v: u64)[src]

Sets the max_packet_size transport parameter.

pub fn set_initial_max_data(&mut self, v: u64)[src]

Sets the initial_max_data transport parameter.

pub fn set_initial_max_stream_data_bidi_local(&mut self, v: u64)[src]

Sets the initial_max_stream_data_bidi_local transport parameter.

pub fn set_initial_max_stream_data_bidi_remote(&mut self, v: u64)[src]

Sets the initial_max_stream_data_bidi_remote transport parameter.

pub fn set_initial_max_stream_data_uni(&mut self, v: u64)[src]

Sets the initial_max_stream_data_uni transport parameter.

pub fn set_initial_max_streams_bidi(&mut self, v: u64)[src]

Sets the initial_max_streams_bidi transport parameter.

pub fn set_initial_max_streams_uni(&mut self, v: u64)[src]

Sets the initial_max_streams_uni transport parameter.

pub fn set_ack_delay_exponent(&mut self, v: u64)[src]

Sets the ack_delay_exponent transport parameter.

pub fn set_max_ack_delay(&mut self, v: u64)[src]

Sets the max_ack_delay transport parameter.

pub fn set_disable_migration(&mut self, v: bool)[src]

Sets the disable_migration transport parameter.

Auto Trait Implementations

impl !Send for Config

impl !Sync for Config

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]