[][src]Enum nvim_rs::error::InvalidMessage

pub enum InvalidMessage {
    NotAnArray(Value),
    WrongArrayLength(RangeInclusive<u64>, u64),
    InvalidType(Value),
    UnknownMessageType(u64),
    InvalidParams(ValueString),
    InvalidNotificationName(Value),
    InvalidRequestName(u64Value),
    InvalidMsgid(Value),
}

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

InvalidParams(ValueString)

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

InvalidRequestName(u64Value)

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]

impl Debug for InvalidMessage[src]

impl Display for InvalidMessage[src]

impl Error for InvalidMessage[src]

impl From<InvalidMessage> for Box<DecodeError>[src]

impl PartialEq<InvalidMessage> for InvalidMessage[src]

impl StructuralPartialEq for InvalidMessage[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.