pub enum AMQPHardError {
CONNECTIONFORCED,
INVALIDPATH,
FRAMEERROR,
SYNTAXERROR,
COMMANDINVALID,
CHANNELERROR,
UNEXPECTEDFRAME,
RESOURCEERROR,
NOTALLOWED,
NOTIMPLEMENTED,
INTERNALERROR,
}Expand description
The available hard AMQP errors
Variants§
CONNECTIONFORCED
CONNECTION-FORCED (Generated)
INVALIDPATH
INVALID-PATH (Generated)
FRAMEERROR
FRAME-ERROR (Generated)
SYNTAXERROR
SYNTAX-ERROR (Generated)
COMMANDINVALID
COMMAND-INVALID (Generated)
CHANNELERROR
CHANNEL-ERROR (Generated)
UNEXPECTEDFRAME
UNEXPECTED-FRAME (Generated)
RESOURCEERROR
RESOURCE-ERROR (Generated)
NOTALLOWED
NOT-ALLOWED (Generated)
NOTIMPLEMENTED
NOT-IMPLEMENTED (Generated)
INTERNALERROR
INTERNAL-ERROR (Generated)
Implementations§
Source§impl AMQPHardError
impl AMQPHardError
Sourcepub fn get_id(&self) -> Identifier
pub fn get_id(&self) -> Identifier
Get the id of the hard error
Sourcepub fn from_id(id: Identifier) -> Option<AMQPHardError>
pub fn from_id(id: Identifier) -> Option<AMQPHardError>
Get the hard error corresponding to an id
Trait Implementations§
Source§impl Clone for AMQPHardError
impl Clone for AMQPHardError
Source§fn clone(&self) -> AMQPHardError
fn clone(&self) -> AMQPHardError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AMQPHardError
impl Debug for AMQPHardError
Source§impl Display for AMQPHardError
impl Display for AMQPHardError
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 PartialEq for AMQPHardError
impl PartialEq for AMQPHardError
Source§fn eq(&self, other: &AMQPHardError) -> bool
fn eq(&self, other: &AMQPHardError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AMQPHardError
Auto Trait Implementations§
impl Freeze for AMQPHardError
impl RefUnwindSafe for AMQPHardError
impl Send for AMQPHardError
impl Sync for AMQPHardError
impl Unpin for AMQPHardError
impl UnsafeUnpin for AMQPHardError
impl UnwindSafe for AMQPHardError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more