Struct mosquitto_client::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Our Error type. Covers both regular Mosquitto errors and connection errors.
Methods
impl Error
[src]
fn new(msg: &str, rc: c_int) -> Error
[src]
create a new Mosquitto error
fn new_connect(rc: c_int) -> Error
[src]
create a new connection error
fn error(&self) -> i32
[src]
underlying error code
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more