Struct neovim_lib::session::Session
[−]
[src]
pub struct Session { /* 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<S: AsRef<Path>>(program: S) -> Result<Session>
Connect to a Neovim instance by spawning a new one
fn new_child_cmd(cmd: &mut Command) -> Result<Session>
Connect to a Neovim instance by spawning a new one
stdin/stdout settings will be rewrited to Stdio::piped()
fn new_parent() -> Result<Session>
Connect to a Neovim instance that spawned this process over stdin/stdout.
fn set_timeout(&mut self, timeout: Duration)
Set call timeout
fn set_infinity_timeout(&mut self)
fn start_event_loop_handler<H>(&mut self, handler: H) where
H: Handler + Send + 'static,
H: Handler + Send + 'static,
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
fn take_dispatch_guard(&mut self) -> JoinHandle<()>
Wait dispatch thread to finish.
This can happens in case child process connection is lost for some reason.