Function tarpc::serde_transport::tcp::listen [−][src]
pub async fn listen<A, Item, SinkItem, Codec, CodecFn>(
addr: A,
codec_fn: CodecFn
) -> Result<Incoming<Item, SinkItem, Codec, CodecFn>> where
A: ToSocketAddrs,
Item: for<'de> Deserialize<'de>,
Codec: Serializer<SinkItem> + Deserializer<Item>,
CodecFn: Fn() -> Codec,
Listens on addr
, wrapping accepted connections in TCP transports.