[−][src]Enum nvim_rs::error::InvalidMessage
A message from neovim had an invalid format
This should be very basically non-existent, since it would indicate a bug in neovim.
Variants
NotAnArray(Value)
The value read was not an array
WrongArrayLength(RangeInclusive<u64>, u64)
WrongArrayLength(should, is) means that the array should have length in
the range should
, but has length is
InvalidType(Value)
The first array element (=the message type) was not decodable into a u64
UnknownMessageType(u64)
The first array element (=the message type) was decodable into a u64 larger than 2
The params of a request or notification weren't an array
InvalidNotificationName(Value)
The method name of a notification was not decodable into a String
The method name of a request was not decodable into a String
InvalidMsgid(Value)
The msgid of a request or response was not decodable into a u64
Trait Implementations
impl Clone for InvalidMessage
[src]
fn clone(&self) -> InvalidMessage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InvalidMessage
[src]
impl Display for InvalidMessage
[src]
impl Error for InvalidMessage
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<InvalidMessage> for Box<DecodeError>
[src]
fn from(err: InvalidMessage) -> Box<DecodeError>
[src]
impl PartialEq<InvalidMessage> for InvalidMessage
[src]
fn eq(&self, other: &InvalidMessage) -> bool
[src]
fn ne(&self, other: &InvalidMessage) -> bool
[src]
impl StructuralPartialEq for InvalidMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidMessage
impl Send for InvalidMessage
impl Sync for InvalidMessage
impl Unpin for InvalidMessage
impl UnwindSafe for InvalidMessage
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,