Struct rvk::error::APIError[][src]

pub struct APIError { /* fields omitted */ }

An error returned by the API

Methods

impl APIError
[src]

Creates a new APIError

Returns the code of this APIError

use rvk::error::APIError;

let err = APIError::new(0, "test".to_string());
assert_eq!(err.code(), 0);

Returns the message of this APIError

use rvk::error::APIError;

let err = APIError::new(0, "test".to_string());
assert_eq!(err.msg(), "test");

Trait Implementations

impl Debug for APIError
[src]

Formats the value using the given formatter. Read more

impl Eq for APIError
[src]

impl PartialEq for APIError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for APIError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for APIError
[src]

Formats the value using the given formatter. Read more

impl From<APIError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for APIError

impl Sync for APIError