pub enum NeovimRef<'a> {
    SingleThreaded(RefMut<'a, Neovim>),
    MultiThreaded(MutexGuard<'a, Option<Neovim>>),
}

Variants

SingleThreaded(RefMut<'a, Neovim>)

MultiThreaded(MutexGuard<'a, Option<Neovim>>)

Implementations

Methods from Deref<Target = Neovim>

Register as a remote UI.

After this method is called, the client will receive redraw notifications.

Send a quit command to Nvim. The quit command is ‘qa!’ which will make Nvim quit without saving anything.

Same as ui_set_option but use UiOption as argument to check type at compile time

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.