pub struct Connector<T, P, B>{ /* private fields */ }
Available on crate feature
client
only.Expand description
A connector combines the futures required to connect to a transport and then complete the transport’s associated startup handshake.
Implementations§
Trait Implementations§
Source§impl<T, P, B> IntoFuture for Connector<T, P, B>
impl<T, P, B> IntoFuture for Connector<T, P, B>
Source§type Output = Result<<P as Protocol<<T as Transport>::IO, B>>::Connection, Error<<T as Transport>::Error, <P as Protocol<<T as Transport>::IO, B>>::Error>>
type Output = Result<<P as Protocol<<T as Transport>::IO, B>>::Connection, Error<<T as Transport>::Error, <P as Protocol<<T as Transport>::IO, B>>::Error>>
The output that the future will produce on completion.
Source§type IntoFuture = ConnectorFuture<T, P, B>
type IntoFuture = ConnectorFuture<T, P, B>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
impl<'pin, T, P, B> Unpin for Connector<T, P, B>
Auto Trait Implementations§
impl<T, P, B> !Freeze for Connector<T, P, B>
impl<T, P, B> !RefUnwindSafe for Connector<T, P, B>
impl<T, P, B> Send for Connector<T, P, B>where
P: Send,
impl<T, P, B> Sync for Connector<T, P, B>
impl<T, P, B> !UnwindSafe for Connector<T, P, B>
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<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Available on crate feature
client
only.Convert this resolver into a
FirstAddrResolver
. Read more