Struct gotham::tls::test::TestConnect
source · pub struct TestConnect { /* private fields */ }
Expand description
TestConnect
represents the connection between a test client and the TestServer
instance
that created it. This type should never be used directly.
Trait Implementations§
source§impl Clone for TestConnect
impl Clone for TestConnect
source§fn clone(&self) -> TestConnect
fn clone(&self) -> TestConnect
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<SocketAddr> for TestConnect
impl From<SocketAddr> for TestConnect
source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
source§impl Service<Uri> for TestConnect
impl Service<Uri> for TestConnect
§type Response = TlsConnectionStream<TcpStream>
type Response = TlsConnectionStream<TcpStream>
Responses given by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<TestConnect as Service<Uri>>::Response, <TestConnect as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<TestConnect as Service<Uri>>::Response, <TestConnect as Service<Uri>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for TestConnect
impl !RefUnwindSafe for TestConnect
impl Send for TestConnect
impl Sync for TestConnect
impl Unpin for TestConnect
impl !UnwindSafe for TestConnect
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