[−][src]Struct gotham::plain::test::TestConnect
TestConnect
represents the connection between a test client and the TestServer
instance
that created it. This type should never be used directly.
Trait Implementations
impl Clone for TestConnect
[src]
fn clone(&self) -> TestConnect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Service<Uri> for TestConnect
[src]
type Response = TcpStream
Responses given by the service.
type Error = CompatError
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>
The future response value.
fn poll_ready(&mut self, _cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, _req: Uri) -> Self::Future
[src]
Auto Trait Implementations
impl RefUnwindSafe for TestConnect
impl Send for TestConnect
impl Sync for TestConnect
impl Unpin for TestConnect
impl UnwindSafe for TestConnect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Connect for S where
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
[src]
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,