Struct rustls_ffi::server::rustls_server_config[][src]

pub struct rustls_server_config { /* fields omitted */ }
Expand description

A server config that is done being constructed and is now read-only. Under the hood, this object corresponds to an Arc. https://docs.rs/rustls/0.20.0/rustls/struct.ServerConfig.html

Implementations

“Free” a rustls_server_config previously returned from rustls_server_config_builder_build. Since rustls_server_config is actually an atomically reference-counted pointer, extant server connections may still hold an internal reference to the Rust object. However, C code must consider this pointer unusable after “free“ing it. Calling with NULL is fine. Must not be called twice with the same value.

Create a new rustls_connection containing a server connection, and return it in the output parameter out. If this returns an error code, the memory pointed to by session_out remains unchanged. If this returns a non-error, the memory pointed to by session_out is modified to point at a valid rustls_connection. The caller now owns the rustls_connection and must call rustls_connection_free when done with it.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.