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
sourceimpl Connect for TestConnect
impl Connect for TestConnect
type Error = CompatError
type Error = CompatError
An error occured when trying to connect.
type Future = Box<dyn Future<Item = (Self::Transport, Connected), Error = Self::Error> + Send + Sync>
type Future = Box<dyn Future<Item = (Self::Transport, Connected), Error = Self::Error> + Send + Sync>
A Future that will resolve to the connected Transport.
sourcefn connect(&self, _dst: Destination) -> Self::Future
fn connect(&self, _dst: Destination) -> Self::Future
Connect to a destination.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more