Function tarpc::serde_transport::tcp::connect [−][src]
pub fn connect<A, Item, SinkItem, Codec, CodecFn>(
addr: A,
codec_fn: CodecFn
) -> Connect<impl Future<Output = Result<TcpStream>>, Item, SinkItem, CodecFn>ⓘwhereNotable traits for Connect<T, Item, SinkItem, CodecFn>
impl<T, Item, SinkItem, Codec, CodecFn> Future for Connect<T, Item, SinkItem, CodecFn> where
T: Future<Output = Result<TcpStream>>,
Item: for<'de> Deserialize<'de>,
SinkItem: Serialize,
Codec: Serializer<SinkItem> + Deserializer<Item>,
CodecFn: Fn() -> Codec, type Output = Result<Transport<TcpStream, Item, SinkItem, Codec>>;
A: ToSocketAddrs,
Item: for<'de> Deserialize<'de>,
SinkItem: Serialize,
Codec: Serializer<SinkItem> + Deserializer<Item>,
CodecFn: Fn() -> Codec,
Connects to addr
, wrapping the connection in a TCP transport.