Function connect
pub fn connect<P, Item, SinkItem, Codec, CodecFn>(
path: P,
codec_fn: CodecFn,
) -> UnixConnect<impl Future<Output = Result<UnixStream, Error>>, Item, SinkItem, CodecFn> ⓘwhere
P: AsRef<Path>,
Item: for<'de> Deserialize<'de>,
SinkItem: Serialize,
Codec: Serializer<SinkItem> + Deserializer<Item>,
CodecFn: Fn() -> Codec,Available on crate features
client or server only.Expand description
Connects to socket named by path, wrapping the connection in a Unix Domain Socket
transport.