interprocess 2.4.0

Interprocess communication toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use {
    super::super::uds_local_socket as uds_impl,
    crate::local_socket::{ConnectOptions, Listener, ListenerOptions, Stream},
    std::io,
};

#[inline]
pub fn listen(options: ListenerOptions<'_>) -> io::Result<Listener> {
    options.create_sync_as::<uds_impl::Listener>().map(Listener::from)
}
#[inline]
pub fn connect(options: &ConnectOptions<'_>) -> io::Result<Stream> {
    options.connect_sync_as::<uds_impl::Stream>().map(Stream::from)
}