Struct actix_test::TestServerConfig
source · pub struct TestServerConfig { /* private fields */ }
Implementations§
source§impl TestServerConfig
impl TestServerConfig
sourcepub fn openssl(self, acceptor: SslAcceptor) -> Self
Available on crate feature openssl
only.
pub fn openssl(self, acceptor: SslAcceptor) -> Self
openssl
only.Accepts secure connections via OpenSSL.
sourcepub fn rustls_0_20(self, config: ServerConfig) -> Self
Available on crate feature rustls-0_20
only.
pub fn rustls_0_20(self, config: ServerConfig) -> Self
rustls-0_20
only.Accepts secure connections via Rustls v0.20.
sourcepub fn rustls_0_21(self, config: ServerConfig) -> Self
Available on crate feature rustls-0_21
only.
pub fn rustls_0_21(self, config: ServerConfig) -> Self
rustls-0_21
only.Accepts secure connections via Rustls v0.21.
sourcepub fn rustls_0_22(self, config: ServerConfig) -> Self
Available on crate feature rustls-0_22
only.
pub fn rustls_0_22(self, config: ServerConfig) -> Self
rustls-0_22
only.Accepts secure connections via Rustls v0.22.
sourcepub fn rustls_0_23(self, config: ServerConfig) -> Self
Available on crate feature rustls-0_23
only.
pub fn rustls_0_23(self, config: ServerConfig) -> Self
rustls-0_23
only.Accepts secure connections via Rustls v0.23.
sourcepub fn client_request_timeout(self, dur: Duration) -> Self
pub fn client_request_timeout(self, dur: Duration) -> Self
Sets client timeout for first request.
Trait Implementations§
source§impl Clone for TestServerConfig
impl Clone for TestServerConfig
source§fn clone(&self) -> TestServerConfig
fn clone(&self) -> TestServerConfig
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 Freeze for TestServerConfig
impl !RefUnwindSafe for TestServerConfig
impl Send for TestServerConfig
impl Sync for TestServerConfig
impl Unpin for TestServerConfig
impl !UnwindSafe for TestServerConfig
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