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