Enum nvim_rs::error::CallError [−][src]
pub enum CallError {
SendError(EncodeError, String),
InternalReceiveError(Canceled, String),
DecodeError(Arc<DecodeError>, String),
NeovimError(Option<i64>, String),
WrongValueType(Value),
}
Expand description
Variants
SendError(EncodeError, String)
Sending the request to neovim has failed.
Fields:
- The underlying error
- The name of the called method
InternalReceiveError(Canceled, String)
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
NeovimError(Option<i64>, String)
Neovim encountered an error while executing the reqest.
Fields:
- Neovim’s error type (see
:h api
) - Neovim’s error message
WrongValueType(Value)
Tuple Fields
0: Value
The response from neovim contained a Value
of the wrong
type
Implementations
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.