fn session_at_address(nvim_listen_addr: &str) -> std::io::Result<neovim_lib::Session> {
        let session = match nvim_listen_addr.parse::<std::net::SocketAddr>() {
            Ok (_) => neovim_lib::Session::new_tcp(nvim_listen_addr)?,
            Err(_) => neovim_lib::Session::new_unix_socket(nvim_listen_addr)?,
        };
        Ok(session)
    }
/// Returns neovim session either backed by TCP or UNIX socket
Returns neovim session either backed by TCP or UNIX socket
Returns neovim session either backed by TCP or UNIX socket
fn session_at_address(nvim_listen_addr: &str) -> std::io::Result<neovim_lib::Session> {
        let session = match nvim_listen_addr.parse::<std::net::SocketAddr>() {
            Ok (_) => neovim_lib::Session::new_tcp(nvim_listen_addr)?,
            Err(_) => neovim_lib::Session::new_unix_socket(nvim_listen_addr)?,
        };
        Ok(session)
    }
fn session_at_address ( nvim_listen_addr : & str ) -> std :: io :: Result < neovim_lib :: Session > { let session = match nvim_listen_addr . parse :: < std :: net :: SocketAddr > ( ) { Ok ( _ ) => neovim_lib :: Session :: new_tcp ( nvim_listen_addr ) ? , Err ( _ ) => neovim_lib :: Session :: new_unix_socket ( nvim_listen_addr ) ? , } ; Ok ( session ) }
Returns neovim session either backed by TCP or UNIX socket
Returns neovim session either backed by TCP or UNIX socket
nvim_listen_addr
&str
nvim_listen_addr
&str