Struct axum_server::tls_openssl::OpenSSLAcceptor
source · pub struct OpenSSLAcceptor<A = DefaultAcceptor> { /* private fields */ }
Available on crate feature
tls-openssl
only.Expand description
Tls acceptor that uses OpenSSL. For details on how to use this see crate::tls_openssl
module
for more details.
Implementations§
source§impl OpenSSLAcceptor
impl OpenSSLAcceptor
sourcepub fn new(config: OpenSSLConfig) -> Self
pub fn new(config: OpenSSLConfig) -> Self
Create a new OpenSSL acceptor based on the provided OpenSSLConfig
. This is
generally used with manual calls to Server::bind
. You may want bind_openssl
instead.
sourcepub fn handshake_timeout(self, val: Duration) -> Self
pub fn handshake_timeout(self, val: Duration) -> Self
Override the default TLS handshake timeout of 10 seconds.
source§impl<A> OpenSSLAcceptor<A>
impl<A> OpenSSLAcceptor<A>
sourcepub fn acceptor<Acceptor>(self, acceptor: Acceptor) -> OpenSSLAcceptor<Acceptor>
pub fn acceptor<Acceptor>(self, acceptor: Acceptor) -> OpenSSLAcceptor<Acceptor>
Overwrite inner acceptor.
Trait Implementations§
source§impl<A, I, S> Accept<I, S> for OpenSSLAcceptor<A>
impl<A, I, S> Accept<I, S> for OpenSSLAcceptor<A>
source§impl<A: Clone> Clone for OpenSSLAcceptor<A>
impl<A: Clone> Clone for OpenSSLAcceptor<A>
source§fn clone(&self) -> OpenSSLAcceptor<A>
fn clone(&self) -> OpenSSLAcceptor<A>
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 moreAuto Trait Implementations§
impl<A> Freeze for OpenSSLAcceptor<A>where
A: Freeze,
impl<A> RefUnwindSafe for OpenSSLAcceptor<A>where
A: RefUnwindSafe,
impl<A> Send for OpenSSLAcceptor<A>where
A: Send,
impl<A> Sync for OpenSSLAcceptor<A>where
A: Sync,
impl<A> Unpin for OpenSSLAcceptor<A>where
A: Unpin,
impl<A> UnwindSafe for OpenSSLAcceptor<A>where
A: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)