pub fn try_clone(&self) -> Result<Connection> {
        match *self {
            Connection::Unix(ref stream) => match stream.try_clone() {
                Ok(cloned) => Ok(Connection::Unix(cloned)),
                Err(e) => Err(e),
            },
            Connection::Tcp(ref stream) => match stream.try_clone() {
                Ok(cloned) => Ok(Connection::Tcp(cloned)),
                Err(e) => Err(e),
            },
        }
    }
/// Try to duplicate the stream into two objects that reference the same underlying resource.
Try to duplicate the stream into two objects that reference the same underlying resource.
Try to duplicate the stream into two objects that reference the same underlying resource .
pub fn try_clone(&self) -> Result<Connection> {
        match *self {
            Connection::Unix(ref stream) => match stream.try_clone() {
                Ok(cloned) => Ok(Connection::Unix(cloned)),
                Err(e) => Err(e),
            },
            Connection::Tcp(ref stream) => match stream.try_clone() {
                Ok(cloned) => Ok(Connection::Tcp(cloned)),
                Err(e) => Err(e),
            },
        }
    }
pub fn try_clone ( & self ) -> Result < Connection > { match * self { Connection :: Unix ( ref stream ) => match stream . try_clone ( ) { Ok ( cloned ) => Ok ( Connection :: Unix ( cloned ) ) , Err ( e ) => Err ( e ) , } , Connection :: Tcp ( ref stream ) => match stream . try_clone ( ) { Ok ( cloned ) => Ok ( Connection :: Tcp ( cloned ) ) , Err ( e ) => Err ( e ) , } , } }
Try to duplicate the stream into two objects that reference the same underlying resource.
Try to duplicate the stream into two objects that reference the same underlying resource .
&self