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]
impl Error
pub fn new(msg: &str, rc: c_int) -> Error
[src]
pub fn new(msg: &str, rc: c_int) -> Error
create a new Mosquitto error
pub fn new_connect(rc: c_int) -> Error
[src]
pub fn new_connect(rc: c_int) -> Error
create a new connection error
pub fn error(&self) -> i32
[src]
pub fn error(&self) -> i32
underlying error code
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error