Struct hyper_sync_rustls::TlsServer
[−]
[src]
pub struct TlsServer {
pub cfg: Arc<ServerConfig>,
}Fields
cfg: Arc<ServerConfig>
Methods
impl TlsServer[src]
fn new(certs: Vec<Certificate>, key: PrivateKey) -> TlsServer[src]
fn with_config(config: ServerConfig) -> TlsServer[src]
Trait Implementations
impl Clone for TlsServer[src]
fn clone(&self) -> TlsServer[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl SslServer for TlsServer[src]
type Stream = WrappedStream<ServerSession>
The protected stream.
fn wrap_server(
&self,
stream: HttpStream
) -> Result<WrappedStream<ServerSession>>[src]
&self,
stream: HttpStream
) -> Result<WrappedStream<ServerSession>>
Wrap a server stream with SSL.