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
sourceimpl LoopError
impl LoopError
pub fn is_channel_closed(&self) -> bool
pub fn is_reader_error(&self) -> bool
Trait Implementations
sourceimpl Error for LoopError
impl Error for LoopError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for LoopError
impl Send for LoopError
impl Sync for LoopError
impl Unpin for LoopError
impl !UnwindSafe for LoopError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more