pub struct NvimHandler {
shell: Arc<UiMutex<State>>,
delayed_redraw_event_id: Arc<UiMutex<Option<SourceId>>>,
}Fields
shell: Arc<UiMutex<State>>delayed_redraw_event_id: Arc<UiMutex<Option<SourceId>>>Implementations
sourceimpl NvimHandler
impl NvimHandler
pub fn new(shell: Arc<UiMutex<State>>) -> NvimHandler
pub fn schedule_redraw_event(&self, event: Value)
pub fn remove_scheduled_redraw_event(&self)
fn nvim_cb(&self, method: &str, params: Vec<Value>)
fn nvim_cb_req(&self, method: &str, params: Vec<Value>) -> Result<Value, Value>
fn safe_call<F>(&self, cb: F)where
F: FnOnce(&Arc<UiMutex<State>>) -> Result<(), String> + 'static + Send,
Trait Implementations
sourceimpl Handler for NvimHandler
impl Handler for NvimHandler
fn handle_notify(&mut self, name: &str, args: Vec<Value>)
sourceimpl RequestHandler for NvimHandler
impl RequestHandler for NvimHandler
Auto Trait Implementations
impl !RefUnwindSafe for NvimHandler
impl Send for NvimHandler
impl Sync for NvimHandler
impl Unpin for NvimHandler
impl !UnwindSafe for NvimHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more