Enum amq_protocol::protocol::AMQPErrorKind
source · pub enum AMQPErrorKind {
Soft(AMQPSoftError),
Hard(AMQPHardError),
}
Expand description
The kind of AMQP Error
Variants§
Implementations§
source§impl AMQPErrorKind
impl AMQPErrorKind
sourcepub fn get_id(&self) -> Identifier
pub fn get_id(&self) -> Identifier
Get the id of the error
sourcepub fn from_id(id: Identifier) -> Option<Self>
pub fn from_id(id: Identifier) -> Option<Self>
Get the error kind corresponding to an id
Trait Implementations§
source§impl Clone for AMQPErrorKind
impl Clone for AMQPErrorKind
source§fn clone(&self) -> AMQPErrorKind
fn clone(&self) -> AMQPErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AMQPErrorKind
impl Debug for AMQPErrorKind
source§impl Display for AMQPErrorKind
impl Display for AMQPErrorKind
source§impl From<AMQPHardError> for AMQPErrorKind
impl From<AMQPHardError> for AMQPErrorKind
source§fn from(error: AMQPHardError) -> Self
fn from(error: AMQPHardError) -> Self
Converts to this type from the input type.
source§impl From<AMQPSoftError> for AMQPErrorKind
impl From<AMQPSoftError> for AMQPErrorKind
source§fn from(error: AMQPSoftError) -> Self
fn from(error: AMQPSoftError) -> Self
Converts to this type from the input type.
source§impl PartialEq<AMQPErrorKind> for AMQPErrorKind
impl PartialEq<AMQPErrorKind> for AMQPErrorKind
source§fn eq(&self, other: &AMQPErrorKind) -> bool
fn eq(&self, other: &AMQPErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AMQPErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for AMQPErrorKind
impl Send for AMQPErrorKind
impl Sync for AMQPErrorKind
impl Unpin for AMQPErrorKind
impl UnwindSafe for AMQPErrorKind
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