Trait UnixStreamConnector
pub trait UnixStreamConnector:
Send
+ Sync
+ 'static {
type Error;
// Required method
fn connect(
&self,
path: PathBuf,
) -> impl Future<Output = Result<UnixStream, Self::Error>> + Send;
}
Expand description
Trait used by the UnixConnector
to actually establish the UnixStream
.
Required Associated Types§
type Error
type Error
Type of error that can occurr when establishing the connection failed.
Required Methods§
fn connect(
&self,
path: PathBuf,
) -> impl Future<Output = Result<UnixStream, Self::Error>> + Send
fn connect( &self, path: PathBuf, ) -> impl Future<Output = Result<UnixStream, Self::Error>> + Send
Connect to the path and return the established UnixStream
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.