Struct hyper_native_tls::NativeTlsServer
[−]
[src]
pub struct NativeTlsServer(_);
An SslServer implementation using native-tls.
Methods
impl NativeTlsServer[src]
fn new<P>(identity: P, password: &str) -> Result<NativeTlsServer, ServerError> where
P: AsRef<Path>,
P: AsRef<Path>,
Returns a NativeTlsServer with a default configuration.
To customize the configuration, build a TlsAcceptor and then use
NativeTlsServer's From implementation.
Trait Implementations
impl Clone for NativeTlsServer[src]
fn clone(&self) -> NativeTlsServer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl From<TlsAcceptor> for NativeTlsServer[src]
fn from(t: TlsAcceptor) -> NativeTlsServer
Performs the conversion.
impl<T> SslServer<T> for NativeTlsServer where
T: NetworkStream + Send + Clone + Debug + Sync, [src]
T: NetworkStream + Send + Clone + Debug + Sync,
type Stream = TlsStream<T>
The protected stream.
fn wrap_server(&self, stream: T) -> Result<TlsStream<T>>
Wrap a server stream with SSL.