Enum amq_protocol::protocol::AMQPSoftError
source · pub enum AMQPSoftError {
CONTENTTOOLARGE,
NOROUTE,
NOCONSUMERS,
ACCESSREFUSED,
NOTFOUND,
RESOURCELOCKED,
PRECONDITIONFAILED,
}
Expand description
The available soft AMQP errors
Variants§
CONTENTTOOLARGE
CONTENT-TOO-LARGE (Generated)
NOROUTE
NO-ROUTE (Generated)
NOCONSUMERS
NO-CONSUMERS (Generated)
ACCESSREFUSED
ACCESS-REFUSED (Generated)
NOTFOUND
NOT-FOUND (Generated)
RESOURCELOCKED
RESOURCE-LOCKED (Generated)
PRECONDITIONFAILED
PRECONDITION-FAILED (Generated)
Implementations§
source§impl AMQPSoftError
impl AMQPSoftError
sourcepub fn get_id(&self) -> Identifier
pub fn get_id(&self) -> Identifier
Get the id of the soft error
sourcepub fn from_id(id: Identifier) -> Option<AMQPSoftError>
pub fn from_id(id: Identifier) -> Option<AMQPSoftError>
Get the soft error corresponding to an id
Trait Implementations§
source§impl Clone for AMQPSoftError
impl Clone for AMQPSoftError
source§fn clone(&self) -> AMQPSoftError
fn clone(&self) -> AMQPSoftError
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 AMQPSoftError
impl Debug for AMQPSoftError
source§impl Display for AMQPSoftError
impl Display for AMQPSoftError
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<AMQPSoftError> for AMQPSoftError
impl PartialEq<AMQPSoftError> for AMQPSoftError
source§fn eq(&self, other: &AMQPSoftError) -> bool
fn eq(&self, other: &AMQPSoftError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AMQPSoftError
Auto Trait Implementations§
impl RefUnwindSafe for AMQPSoftError
impl Send for AMQPSoftError
impl Sync for AMQPSoftError
impl Unpin for AMQPSoftError
impl UnwindSafe for AMQPSoftError
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