Enum nvim_gtk::nvim::client::NeovimRef[][src]

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

Variants

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

Implementations

impl<'a> NeovimRef<'a>[src]

fn from_nvim(nvim: RefMut<'a, Neovim>) -> Self[src]

fn try_nvim_async(nvim_async: &'a NeovimClientAsync) -> Option<NeovimRef<'a>>[src]

fn from_nvim_async(nvim_async: &'a NeovimClientAsync) -> Option<NeovimRef<'a>>[src]

pub fn non_blocked(self) -> Option<Self>[src]

Methods from Deref<Target = Neovim>

pub fn ui_attach(
    &mut self,
    width: i64,
    height: i64,
    opts: &UiAttachOptions
) -> Result<(), CallError>
[src]

Register as a remote UI.

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

pub fn quit_no_save(&mut self) -> Result<(), CallError>[src]

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

pub fn set_option(&mut self, option: UiOption) -> Result<(), CallError>[src]

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

Trait Implementations

impl<'a> Deref for NeovimRef<'a>[src]

type Target = Neovim

The resulting type after dereferencing.

impl<'a> DerefMut for NeovimRef<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for NeovimRef<'a>

impl<'a> !Send for NeovimRef<'a>

impl<'a> !Sync for NeovimRef<'a>

impl<'a> Unpin for NeovimRef<'a>

impl<'a> !UnwindSafe for NeovimRef<'a>

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.