Struct neovim_lib::async::AsyncCall [−][src]
pub struct AsyncCall<'a, R: FromVal<Value>> { /* fields omitted */ }
Methods
impl<'a, R: FromVal<Value>> AsyncCall<'a, R>
[src]
impl<'a, R: FromVal<Value>> AsyncCall<'a, R>
pub fn new(
client: &'a mut ClientConnection,
method: String,
args: Vec<Value>
) -> Self
[src]
pub fn new(
client: &'a mut ClientConnection,
method: String,
args: Vec<Value>
) -> Self
pub fn cb<F>(self, cb: F) -> Self where
F: FnOnce(Result<R, CallError>) + Send + 'static,
[src]
pub fn cb<F>(self, cb: F) -> Self where
F: FnOnce(Result<R, CallError>) + Send + 'static,
pub fn call(self)
[src]
pub fn call(self)
Async call. Call can be made only after event loop begin processing