[][src]Enum screeps_api::websocket::ParseError

pub enum ParseError {
    Other(String),
    Serde {
        error_desc: &'static str,
        full_string: String,
        err: Error,
    },
    // some variants omitted
}

A SockJS parse error occurred. TODO: more detailed info.

Variants

Other(String)

Some error occurred.

Serde

Serde json error

Fields of Serde

error_desc: &'static str

Error description

full_string: String

Full string being parsed.

err: Error

Inner error

Methods

impl ParseError[src]

pub fn serde(desc: &'static str, string: String, error: Error) -> Self[src]

Creates a serde parse error.

Trait Implementations

impl Display for ParseError[src]

impl Debug for ParseError[src]

impl Error for ParseError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,