pub struct NeovimClient {
state: Cell<NeovimClientState>,
nvim: RefCell<Option<Neovim>>,
nvim_async: NeovimClientAsync,
}
Fields§
§state: Cell<NeovimClientState>
§nvim: RefCell<Option<Neovim>>
§nvim_async: NeovimClientAsync
Implementations§
Source§impl NeovimClient
impl NeovimClient
pub fn new() -> Self
pub fn clear(&self)
pub fn async_to_sync(&self)
pub fn set_nvim_async(&self, nvim: Neovim) -> NeovimClientAsync
pub fn set_initialized(&self)
pub fn set_error(&self)
pub fn set_in_progress(&self)
pub fn is_initialized(&self) -> bool
pub fn is_uninitialized(&self) -> bool
pub fn is_initializing(&self) -> bool
Sourcepub fn try_nvim(&self) -> Option<NeovimRef<'_>>
pub fn try_nvim(&self) -> Option<NeovimRef<'_>>
In case neovimref locked in another thread this method can return None
pub fn nvim(&self) -> Option<NeovimRef<'_>>
Auto Trait Implementations§
impl !Freeze for NeovimClient
impl !RefUnwindSafe for NeovimClient
impl Send for NeovimClient
impl !Sync for NeovimClient
impl Unpin for NeovimClient
impl !UnwindSafe for NeovimClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more