Struct salvo::TlsServer[][src]

pub struct TlsServer { /* fields omitted */ }

Implementations

Specify the file path to read the private key.

This function requires the "tls" feature.

Specify the file path to read the certificate.

This function requires the "tls" feature.

Specify the file path to read the trust anchor for optional client authentication.

Anonymous and authenticated clients will be accepted. If no trust anchor is provided by any of the client_auth_ methods, then client authentication is disabled by default.

This function requires the "tls" feature.

Specify the file path to read the trust anchor for required client authentication.

Only authenticated clients will be accepted. If no trust anchor is provided by any of the client_auth_ methods, then client authentication is disabled by default.

This function requires the "tls" feature.

Specify the in-memory contents of the private key.

This function requires the "tls" feature.

Specify the in-memory contents of the certificate.

This function requires the "tls" feature.

Specify the in-memory contents of the trust anchor for optional client authentication.

Anonymous and authenticated clients will be accepted. If no trust anchor is provided by any of the client_auth_ methods, then client authentication is disabled by default.

This function requires the "tls" feature.

Specify the in-memory contents of the trust anchor for required client authentication.

Only authenticated clients will be accepted. If no trust anchor is provided by any of the client_auth_ methods, then client authentication is disabled by default.

This function requires the "tls" feature.

Specify the DER-encoded OCSP response.

This function requires the "tls" feature.

Bind to a socket address, returning a Future that can be executed on a runtime.

This function requires the "tls" feature.

Bind to a socket address, returning a Future that can be executed on any runtime.

In case we are unable to bind to the specified address, resolves to an error and logs the reason.

This function requires the "tls" feature.

Create a server with graceful shutdown signal.

When the signal completes, the server will start the graceful shutdown process.

This function requires the "tls" feature.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

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.