[−][src]Struct neovim_lib::session::Session
An active Neovim session.
Methods
impl Session
[src]
impl Session
pub fn new_tcp(addr: &str) -> Result<Session>
[src]
pub fn new_tcp(addr: &str) -> Result<Session>
Connect to nvim instance via tcp
pub fn new_unix_socket<P: AsRef<Path>>(path: P) -> Result<Session>
[src]
pub fn new_unix_socket<P: AsRef<Path>>(path: P) -> Result<Session>
Connect to nvim instance via unix socket
pub fn new_child() -> Result<Session>
[src]
pub fn new_child() -> Result<Session>
Connect to a Neovim instance by spawning a new one.
pub fn new_child_path<S: AsRef<Path>>(program: S) -> Result<Session>
[src]
pub fn new_child_path<S: AsRef<Path>>(program: S) -> Result<Session>
Connect to a Neovim instance by spawning a new one
pub fn new_child_cmd(cmd: &mut Command) -> Result<Session>
[src]
pub 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()
pub fn new_parent() -> Result<Session>
[src]
pub fn new_parent() -> Result<Session>
Connect to a Neovim instance that spawned this process over stdin/stdout.
pub fn set_timeout(&mut self, timeout: Duration)
[src]
pub fn set_timeout(&mut self, timeout: Duration)
Set call timeout
pub fn set_infinity_timeout(&mut self)
[src]
pub fn set_infinity_timeout(&mut self)
pub fn start_event_loop_handler<H>(&mut self, handler: H) where
H: Handler + Send + 'static,
[src]
pub fn start_event_loop_handler<H>(&mut self, handler: H) where
H: Handler + Send + 'static,
Start processing rpc response and notifications
pub fn start_event_loop(&mut self)
[src]
pub fn start_event_loop(&mut self)
Start processing rpc response and notifications
pub fn call(&mut self, method: &str, args: Vec<Value>) -> Result<Value, Value>
[src]
pub fn call(&mut self, method: &str, args: Vec<Value>) -> Result<Value, Value>
Sync call. Call can be made only after event loop begin processing
pub fn call_async<R: FromVal<Value>>(
&mut self,
method: &str,
args: Vec<Value>
) -> AsyncCall<R>
[src]
pub fn call_async<R: FromVal<Value>>(
&mut self,
method: &str,
args: Vec<Value>
) -> AsyncCall<R>
Create async call will be executed when only after call() function.
pub fn take_dispatch_guard(&mut self) -> JoinHandle<()>
[src]
pub 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.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more