[][src]Struct neovim_lib::neovim::Neovim

pub struct Neovim {
    pub session: Session,
}

Fields

session: Session

Methods

impl Neovim[src]

pub fn new(session: Session) -> Neovim[src]

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 NeovimApi for Neovim[src]

impl NeovimApiAsync for Neovim[src]

Auto Trait Implementations

impl Send for Neovim

impl Sync for Neovim

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.