struct ConnectingTcp<'a> {
preferred: ConnectingTcpRemote,
fallback: Option<ConnectingTcpFallback>,
config: &'a Config,
}
Fields§
§preferred: ConnectingTcpRemote
§fallback: Option<ConnectingTcpFallback>
§config: &'a Config
Implementations§
source§impl<'a> ConnectingTcp<'a>
impl<'a> ConnectingTcp<'a>
fn new(remote_addrs: SocketAddrs, config: &'a Config) -> Self
source§impl ConnectingTcp<'_>
impl ConnectingTcp<'_>
async fn connect(self) -> Result<TcpStream, ConnectError>
Auto Trait Implementations§
impl<'a> !Freeze for ConnectingTcp<'a>
impl<'a> !RefUnwindSafe for ConnectingTcp<'a>
impl<'a> Send for ConnectingTcp<'a>
impl<'a> Sync for ConnectingTcp<'a>
impl<'a> !Unpin for ConnectingTcp<'a>
impl<'a> !UnwindSafe for ConnectingTcp<'a>
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