[][src]Struct ezjsonrpc::Error

pub struct Error {
    pub code: i64,
    pub message: String,
    pub data: Option<Value>,
}

Fields

code: i64message: Stringdata: Option<Value>

Methods

impl Error
[src]

pub fn invalid_params() -> Self
[src]

pub fn method_not_found() -> Self
[src]

pub fn parse_error() -> Self
[src]

pub fn invalid_request() -> Self
[src]

Trait Implementations

impl<T: Display> From<T> for Error
[src]

impl Default for Error
[src]

impl Debug for Error
[src]

impl Serialize for Error
[src]

impl<'de> Deserialize<'de> for Error
[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]