pub struct AMQPError { /* private fields */ }
Expand description
An AMQP Error
Implementations§
source§impl AMQPError
impl AMQPError
sourcepub fn new(kind: AMQPErrorKind, message: ShortString) -> AMQPError
pub fn new(kind: AMQPErrorKind, message: ShortString) -> AMQPError
Create a new error
sourcepub fn from_id(id: u16, message: ShortString) -> Option<AMQPError>
pub fn from_id(id: u16, message: ShortString) -> Option<AMQPError>
Get the error corresponding to an id
sourcepub fn kind(&self) -> &AMQPErrorKind
pub fn kind(&self) -> &AMQPErrorKind
Get the kind of error
sourcepub fn get_message(&self) -> &ShortString
pub fn get_message(&self) -> &ShortString
Get the message of the error
Trait Implementations§
source§impl Error for AMQPError
impl Error for AMQPError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for AMQPError
impl PartialEq for AMQPError
impl StructuralPartialEq for AMQPError
Auto Trait Implementations§
impl Freeze for AMQPError
impl RefUnwindSafe for AMQPError
impl Send for AMQPError
impl Sync for AMQPError
impl Unpin for AMQPError
impl UnwindSafe for AMQPError
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