Struct nvim_gtk::nvim::handler::NvimHandler[][src]

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

impl NvimHandler[src]

pub fn new(shell: Arc<UiMutex<State>>) -> NvimHandler[src]

pub fn schedule_redraw_event(&self, event: Value)[src]

pub fn remove_scheduled_redraw_event(&self)[src]

fn nvim_cb(&self, method: &str, params: Vec<Value>)[src]

fn nvim_cb_req(&self, method: &str, params: Vec<Value>) -> Result<Value, Value>[src]

fn safe_call<F>(&self, cb: F) where
    F: FnOnce(&Arc<UiMutex<State>>) -> Result<(), String> + 'static + Send
[src]

Trait Implementations

impl Handler for NvimHandler[src]

impl RequestHandler for NvimHandler[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.