pub struct TcpConnecter(/* private fields */);
Expand description
A utility for making TCP connections.
See PoolExt::tcp_connecter
for details.
Initiate a TCP connection, converting a TcpListener
to a TcpStream
.
This is simlar to Pool::connect_tcp_stream
in that it performs a TCP connection, but instead of creating a new socket itself it takes a TcpListener
, such as one created with TcpListenerExt::new
.
Despite the name, this function uses the TcpListener
type as a generic socket container.
This is similar to PoolExt::connect_into_tcp_stream
except that it uses a TcpConnecter
which contains addresses that have already been checked against a Pool
.
Initiate a TCP connection on a socket.
This is simlar to Pool::connect_into_tcp_stream
, however instead of converting a TcpListener
to a TcpStream
, it leaves fd in the existing TcpListener
.
This is similar to PoolExt::connect_existing_tcp_listener
except that it uses a TcpConnecter
which contains addresses that have already been checked against a Pool
.
where T: 'static + ?
Sized,
Source§ fn type_id(&self) -> TypeIdGets the
TypeId
of
self
.
Read more Source§ impl<T> Borrow<T> for Twhere T: ?
Sized,
Source§ fn borrow(&self) -> &TImmutably borrows from an owned value.
Read more Source§ impl<T> BorrowMut<T> for Twhere T: ?
Sized,
Source§ fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value.
Read more Source§ impl<T> From<T> for T Source§ fn from(t: T) -> TReturns the argument unchanged.
Source§ impl<T, U> Into<U> for Twhere U:
From<T>,
Source§ fn into(self) -> UCalls U::from(self)
.
That is, this conversion is whatever the implementation of From<T> for U
chooses to do.
where U:
Into<T>,
Source§ type Error = InfallibleThe type returned in the event of a conversion error.
Source§ fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>Performs the conversion.
Source§ impl<T, U> TryInto<U> for Twhere U:
TryFrom<T>,
Source§ type Error = <U as TryFrom<T>>::ErrorThe type returned in the event of a conversion error.
Source§ fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>Performs the conversion.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4