pub struct NativeTlsServer(/* private fields */);
Expand description
An SslServer
implementation using native-tls.
Implementations§
Source§impl NativeTlsServer
impl NativeTlsServer
Sourcepub fn new<P>(
identity: P,
password: &str,
) -> Result<NativeTlsServer, ServerError>
pub fn new<P>( identity: P, password: &str, ) -> Result<NativeTlsServer, ServerError>
Returns a NativeTlsServer
with a default configuration.
To customize the configuration, build a TlsAcceptor
and then use
NativeTlsServer
’s From
implementation.
Trait Implementations§
Source§impl Clone for NativeTlsServer
impl Clone for NativeTlsServer
Source§fn clone(&self) -> NativeTlsServer
fn clone(&self) -> NativeTlsServer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<TlsAcceptor> for NativeTlsServer
impl From<TlsAcceptor> for NativeTlsServer
Source§fn from(t: TlsAcceptor) -> NativeTlsServer
fn from(t: TlsAcceptor) -> NativeTlsServer
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeTlsServer
impl RefUnwindSafe for NativeTlsServer
impl Send for NativeTlsServer
impl Sync for NativeTlsServer
impl Unpin for NativeTlsServer
impl UnwindSafe for NativeTlsServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)