Struct neovim_lib::session::Session
[−]
[src]
pub struct Session { // some fields omitted }
An active Neovim session.
Methods
impl Session
[src]
fn new_tcp(addr: &str) -> Result<Session>
Connect to nvim instance via tcp
fn new_child() -> Result<Session>
Connect to a Neovim instance by spawning a new one.
fn new_child_path(program: &str) -> Result<Session>
Connect to a Neovim instance by spawning a new one
fn start_event_loop_cb<F: Fn(&str, Vec<Value>) + Send + 'static>(&mut self, cb: F)
Start processing rpc response and notifications
fn start_event_loop(&mut self)
Start processing rpc response and notifications
fn call(&mut self, method: &str, args: &Vec<Value>) -> Result<Value, Value>
Sync call. Call can be made only after event loop begin processing