pub enum NeovimRef<'a> {
SingleThreaded(RefMut<'a, Neovim>),
MultiThreaded(MutexGuard<'a, Option<Neovim>>),
}Variants
SingleThreaded(RefMut<'a, Neovim>)
MultiThreaded(MutexGuard<'a, Option<Neovim>>)
Implementations
sourceimpl<'a> NeovimRef<'a>
impl<'a> NeovimRef<'a>
fn from_nvim(nvim: RefMut<'a, Neovim>) -> Self
fn try_nvim_async(nvim_async: &'a NeovimClientAsync) -> Option<NeovimRef<'a>>
fn from_nvim_async(nvim_async: &'a NeovimClientAsync) -> Option<NeovimRef<'a>>
pub fn non_blocked(self) -> Option<Self>
Methods from Deref<Target = Neovim>
sourcepub fn ui_attach(
&mut self,
width: i64,
height: i64,
opts: &UiAttachOptions
) -> Result<(), CallError>
pub fn ui_attach(
&mut self,
width: i64,
height: i64,
opts: &UiAttachOptions
) -> Result<(), CallError>
Register as a remote UI.
After this method is called, the client will receive redraw notifications.
sourcepub fn quit_no_save(&mut self) -> Result<(), CallError>
pub fn quit_no_save(&mut self) -> Result<(), CallError>
Send a quit command to Nvim. The quit command is ‘qa!’ which will make Nvim quit without saving anything.
Trait Implementations
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
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