pub async fn unix_connect<U>(path: impl AsRef<std::path::Path>, codec: U) -> io::Result<Self>
    where
        U: Codec + Send + 'static,
    {
        let p = path.as_ref();
        let transport = Transport::<tokio::net::UnixStream, U>::connect(p, codec).await?;
        let details = SessionDetails::Socket {
            path: p.to_path_buf(),
            tag: transport.to_connection_tag(),
        };
        debug!(
            "Session has been established with {}",
            transport
                .peer_addr()
                .map(|x| format!("{:?}", x))
                .unwrap_or_else(|_| String::from("???"))
        );
        Self::initialize_with_details(transport, Some(details))
    }
/// Connect to a proxy unix socket
Connect to a proxy unix socket
Connect to a proxy unix socket
pub async fn unix_connect<U>(path: impl AsRef<std::path::Path>, codec: U) -> io::Result<Self>
    where
        U: Codec + Send + 'static,
    {
        let p = path.as_ref();
        let transport = Transport::<tokio::net::UnixStream, U>::connect(p, codec).await?;
        let details = SessionDetails::Socket {
            path: p.to_path_buf(),
            tag: transport.to_connection_tag(),
        };
        debug!(
            "Session has been established with {}",
            transport
                .peer_addr()
                .map(|x| format!("{:?}", x))
                .unwrap_or_else(|_| String::from("???"))
        );
        Self::initialize_with_details(transport, Some(details))
    }
pub async fn unix_connect < U > ( path : impl AsRef < std :: path :: Path > , codec : U ) -> io :: Result < Self > where U : Codec + Send + ' static , { let p = path . as_ref ( ) ; let transport = Transport :: < tokio :: net :: UnixStream , U > :: connect ( p , codec ) . await ? ; let details = SessionDetails :: Socket { path : p . to_path_buf ( ) , tag : transport . to_connection_tag ( ) , } ; debug ! ( " " transport peer_addr ( ) map ( x format ( " " x ) ) unwrap_or_else ( String from ( " " ) ) ) ; Self :: initialize_with_details ( transport , Some ( details ) ) }
Connect to a proxy unix socket
Connect to a proxy unix socket
path
impl AsRef<std::path::Path>
codec
U