pub trait UnixStreamConnector:
Send
+ Sync
+ 'static {
type Error;
// Required method
fn connect(
&self,
path: PathBuf,
) -> impl Future<Output = Result<UnixStream, Self::Error>> + Send + '_;
}Available on
target_family="unix" only.Expand description
Trait used by the UnixConnector
to actually establish the UnixStream.
Required Associated Types§
Required Methods§
Sourcefn 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.