pub struct MQBrokerErr { /* private fields */ }
Implementations§
Source§impl MQBrokerErr
impl MQBrokerErr
pub fn new(response_code: i32, error_message: impl Into<String>) -> Self
pub fn new_with_broker( response_code: i32, error_message: impl Into<String>, broker_addr: impl Into<String>, ) -> Self
pub fn response_code(&self) -> i32
pub fn error_message(&self) -> Option<&String>
pub fn broker_addr(&self) -> Option<&String>
Trait Implementations§
Source§impl Debug for MQBrokerErr
impl Debug for MQBrokerErr
Source§impl Display for MQBrokerErr
impl Display for MQBrokerErr
Source§impl Error for MQBrokerErr
impl Error for MQBrokerErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MQBrokerErr> for RocketmqError
impl From<MQBrokerErr> for RocketmqError
Source§fn from(source: MQBrokerErr) -> Self
fn from(source: MQBrokerErr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MQBrokerErr
impl RefUnwindSafe for MQBrokerErr
impl Send for MQBrokerErr
impl Sync for MQBrokerErr
impl Unpin for MQBrokerErr
impl UnwindSafe for MQBrokerErr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more