pub enum LoopError {
MsgidNotFound(u64),
DecodeError(Arc<DecodeError>, Option<Vec<u64>>),
InternalSendResponseError(u64, Result<Value, Value>),
}
Expand description
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:
- The underlying error
- The msgids of the requests we could not send the error to.
Note: DecodeError can’t be clone, so we Arc-wrap it.
InternalSendResponseError(u64, Result<Value, Value>)
Failed to send a Response (from neovim) through the sender from the request queue
Fields:
- The msgid of the request the response was sent for
- The response from neovim
Implementations§
Source§impl LoopError
impl LoopError
pub fn is_channel_closed(&self) -> bool
pub fn is_reader_error(&self) -> bool
Trait Implementations§
Source§impl Error for LoopError
impl Error for LoopError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LoopError
impl !RefUnwindSafe for LoopError
impl Send for LoopError
impl Sync for LoopError
impl Unpin for LoopError
impl !UnwindSafe for LoopError
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