Expand description
A openssl adaptor for tonic
.
Examples can be found in the example
crate
within the repository.
Structs§
- SslConnect
Info - Connection info for SSL streams.
- SslStream
- A
SslStream
wrapper type that implements tokio’s io traits and tonic’sConnected
trait.
Constants§
- ALPN_
H2_ WIRE - A const that contains the on the wire
h2
alpn value that can be passed directly to OpenSSL.
Functions§
- connector
- tonic client connector to connect to https endpoint at addr using openssl settings in ssl. domain is the server name to validate, and if none, the host part in the uri is used instead. Disabling validation is not supported.
- incoming
- Wrap some incoming stream of io types with OpenSSL’s
SslStream
type. This will take some acceptor and a stream of io types and accept connections. - new_
endpoint - Creates an endpoint with and local uri that is never used.
Use
connector
to make connections.
Type Aliases§
- Error
- Wrapper error type.