Struct rvk::error::APIError
[−]
[src]
pub struct APIError { /* fields omitted */ }
An error returned by the API
Methods
impl APIError
[src]
pub fn new(code: u64, msg: String) -> APIError
[src]
Creates a new APIError
pub fn code(&self) -> u64
[src]
Returns the code of this APIError
use rvk::error::APIError; let err = APIError::new(0, "test".to_string()); assert_eq!(err.code(), 0);
pub fn msg(&self) -> &String
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for APIError
[src]
impl PartialEq for APIError
[src]
fn eq(&self, __arg_0: &APIError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &APIError) -> bool
[src]
This method tests for !=
.
impl Clone for APIError
[src]
fn clone(&self) -> APIError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for APIError
[src]
fn fmt(&self, f: &mut Formatter) -> StdResult<(), Error>
[src]
Formats the value using the given formatter. Read more