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§
Source§impl 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)
Trait Implementations§
Source§impl Handler for NvimHandler
impl Handler for NvimHandler
Source§impl RequestHandler for NvimHandler
impl RequestHandler for NvimHandler
Auto Trait Implementations§
impl Freeze for NvimHandler
impl !RefUnwindSafe for NvimHandler
impl Send for NvimHandler
impl Sync for NvimHandler
impl Unpin for NvimHandler
impl !UnwindSafe for NvimHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more