Struct hyper_sync_rustls::TlsServer
source · pub struct TlsServer {
pub cfg: Arc<ServerConfig>,
}
Fields§
§cfg: Arc<ServerConfig>
Implementations§
source§impl TlsServer
impl TlsServer
sourcepub fn new(certs: Vec<Certificate>, key: PrivateKey) -> TlsServer
pub fn new(certs: Vec<Certificate>, key: PrivateKey) -> TlsServer
Panics if key
is invalid.
pub fn with_config(config: ServerConfig) -> TlsServer
Trait Implementations§
source§impl SslServer<HttpStream> for TlsServer
impl SslServer<HttpStream> for TlsServer
§type Stream = WrappedStream<ServerSession, HttpStream>
type Stream = WrappedStream<ServerSession, HttpStream>
The protected stream.
source§fn wrap_server(&self, stream: HttpStream) -> Result<WrappedStream<ServerSession>>
fn wrap_server(&self, stream: HttpStream) -> Result<WrappedStream<ServerSession>>
Wrap a server stream with SSL.