Struct warp::TlsServer [−][src]
pub struct TlsServer<F> { /* fields omitted */ }
Expand description
A Warp Server ready to filter requests over TLS.
This type requires the "tls"
feature.
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.
Run this TlsServer
forever on the current thread.
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.
pub fn bind_ephemeral(
self,
addr: impl Into<SocketAddr>
) -> (SocketAddr, impl Future<Output = ()> + 'static)
pub fn bind_ephemeral(
self,
addr: impl Into<SocketAddr>
) -> (SocketAddr, impl Future<Output = ()> + 'static)
Bind to a possibly ephemeral socket address.
Returns the bound address and a Future
that can be executed on
the current runtime.
This function requires the "tls"
feature.
pub fn bind_with_graceful_shutdown(
self,
addr: impl Into<SocketAddr> + 'static,
signal: impl Future<Output = ()> + Send + 'static
) -> (SocketAddr, impl Future<Output = ()> + 'static)
pub fn bind_with_graceful_shutdown(
self,
addr: impl Into<SocketAddr> + 'static,
signal: impl Future<Output = ()> + Send + 'static
) -> (SocketAddr, impl Future<Output = ()> + 'static)
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.
Trait Implementations
Auto Trait Implementations
impl<F> !RefUnwindSafe for TlsServer<F>
impl<F> !UnwindSafe for TlsServer<F>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more