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 duplicate 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 for AMQPErrorKind
impl PartialEq for AMQPErrorKind
impl StructuralPartialEq for AMQPErrorKind
Auto Trait Implementations§
impl Freeze for AMQPErrorKind
impl RefUnwindSafe for AMQPErrorKind
impl Send for AMQPErrorKind
impl Sync for AMQPErrorKind
impl Unpin for AMQPErrorKind
impl UnwindSafe for AMQPErrorKind
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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