Enum open_protocol::Error
[−]
[src]
pub enum Error { UnknownPlatform, Key(&'static str), Task(String), Codec(String), ParseInt(ParseIntError), ParseFloat(ParseFloatError), Io(Error), }
Variants
UnknownPlatform
Key(&'static str)
Task(String)
Codec(String)
ParseInt(ParseIntError)
ParseFloat(ParseFloatError)
Io(Error)
Methods
impl Error
[src]
fn codec<I: Into<String>>(m: I) -> Error
Create Codec error from input data.
Example
use open_protocol::Error; let _ = Error::codec("fail to deserialize data");
Trait Implementations
impl Debug for Error
[src]
impl From<ParseIntError> for Error
[src]
fn from(err: ParseIntError) -> Self
Performs the conversion.
impl From<ParseFloatError> for Error
[src]
fn from(err: ParseFloatError) -> Self
Performs the conversion.
impl From<Error> for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more