pub enum QueueCommand {
Purge {
queue: String,
},
Length {
queue: String,
},
Delete {
queue: String,
if_empty: bool,
if_unused: bool,
},
Bind {
queue: String,
exchange: String,
routing_key: String,
},
Unbind {
queue: String,
exchange: String,
routing_key: String,
},
Declare {
queue: String,
durable: bool,
exclusive: bool,
auto_delete: bool,
},
}Expand description
Queue control sub-commands
Variants§
Purge
Purge all messages from a queue
Length
Get the number of messages in a queue
Delete
Delete a queue
Fields
Bind
Bind a queue to an exchange (AMQP)
Unbind
Unbind a queue from an exchange (AMQP)
Declare
Declare a new queue
Implementations§
Source§impl QueueCommand
impl QueueCommand
Sourcepub fn queue_name(&self) -> &str
pub fn queue_name(&self) -> &str
Get the queue name this command operates on
Trait Implementations§
Source§impl Clone for QueueCommand
impl Clone for QueueCommand
Source§fn clone(&self) -> QueueCommand
fn clone(&self) -> QueueCommand
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 QueueCommand
impl Debug for QueueCommand
Source§impl<'de> Deserialize<'de> for QueueCommand
impl<'de> Deserialize<'de> for QueueCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueueCommand
impl RefUnwindSafe for QueueCommand
impl Send for QueueCommand
impl Sync for QueueCommand
impl Unpin for QueueCommand
impl UnwindSafe for QueueCommand
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