#[repr(C)]
pub struct aws_tls_connection_options { pub alpn_list: *mut aws_string, pub server_name: *mut aws_string, pub on_negotiation_result: aws_tls_on_negotiation_result_fn, pub on_data_read: aws_tls_on_data_read_fn, pub on_error: aws_tls_on_error_fn, pub user_data: *mut c_void, pub ctx: *mut aws_tls_ctx, pub advertise_alpn_message: bool, pub timeout_ms: u32, }

Fields

alpn_list: *mut aws_string

semi-colon delimited list of protocols. Example: h2;http/1.1

server_name: *mut aws_string

Serves two purposes. If SNI is supported (hint… it is), this sets the SNI extension.

For X.509 validation this also sets the name that will be used for verifying the subj alt name and common name of the peer’s certificate.

on_negotiation_result: aws_tls_on_negotiation_result_fnon_data_read: aws_tls_on_data_read_fnon_error: aws_tls_on_error_fnuser_data: *mut c_voidctx: *mut aws_tls_ctxadvertise_alpn_message: booltimeout_ms: u32

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.