[][src]Enum nvim_rs::error::LoopError

pub enum LoopError {
    MsgidNotFound(u64),
    DecodeError(Arc<DecodeError>, Option<Vec<u64>>),
    InternalSendResponseError(u64Result<Value, Value>),
    IoSpawn(SpawnError),
}

A failure in the io loop

Variants

MsgidNotFound(u64)

A Msgid could not be found in the request queue

DecodeError(Arc<DecodeError>, Option<Vec<u64>>)

Decoding a message failed.

Fields:

  1. The underlying error
  2. The msgids of the requests we could not send the error to.

Note: DecodeError can't be clone, so we Arc-wrap it.

InternalSendResponseError(u64Result<Value, Value>)

Failed to send a Response (from neovim) through the sender from the request queue

Fields:

  1. The msgid of the request the response was sent for
  2. The response from neovim
IoSpawn(SpawnError)

The io loop could not spawn a task for the handler

Implementations

impl LoopError[src]

#[must_use]pub fn is_channel_closed(&self) -> bool[src]

#[must_use]pub fn is_reader_error(&self) -> bool[src]

Trait Implementations

impl Debug for LoopError[src]

impl Display for LoopError[src]

impl Error for LoopError[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[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.