[−][src]Enum nvim_rs::error::CallError
Variants
SendError(EncodeError, String)
Sending the request to neovim has failed.
Fields:
- The underlying error
- The name of the called method
The internal channel to send the response to the right task was closed. This really should not happen, unless someone manages to kill individual tasks.
Fields:
- The underlying error
- The name of the called method
DecodeError(Arc<DecodeError>, String)
Decoding neovim's response failed.
Fields:
- The underlying error
- The name of the called method
Note: DecodeError can't be Clone, so we Arc-wrap it
Neovim encountered an error while executing the reqest.
Fields:
- Neovim's error type (see
:h api
) - Neovim's error message
Methods
impl CallError
[src]
pub fn is_channel_closed(&self) -> bool
[src]
Determine if the error originated from a closed channel. This is generally used to close a plugin from neovim's side, and so most of the time should not be treated as a real error, but a signal to finish the program.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl !UnwindSafe for CallError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,