Struct tokio_uds_proto::UnixClient
[−]
[src]
pub struct UnixClient<Kind, P> { /* fields omitted */ }
Builds client connections to external services.
To connect to a service, you need a client protocol implementation; see the crate documentation for guidance.
Methods
impl<Kind, P> UnixClient<Kind, P> where
P: BindClient<Kind, UnixStream>,
[src]
P: BindClient<Kind, UnixStream>,
fn new(protocol: P) -> UnixClient<Kind, P>
[src]
Create a builder for the given client protocol.
To connect to a service, you need a client protocol implementation; see the crate documentation for guidance.
fn connect<T>(&self, path: T, handle: &Handle) -> Result<P::BindClient> where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Establish a connection to the given path.