pub struct AmqpQueue { /* private fields */ }
Expand description
Manages an AMQP queue.
Implementations§
Source§impl AmqpQueue
impl AmqpQueue
Sourcepub fn new(
opts: AmqpQueueOptions,
conn: &AmqpConnection,
) -> Result<AmqpQueue, String>
pub fn new( opts: AmqpQueueOptions, conn: &AmqpConnection, ) -> Result<AmqpQueue, String>
Create a queue instance.
Trait Implementations§
Source§impl GmqQueue for AmqpQueue
impl GmqQueue for AmqpQueue
Source§fn set_handler(&mut self, handler: Arc<dyn EventHandler>)
fn set_handler(&mut self, handler: Arc<dyn EventHandler>)
To set the queue event handler.
Source§fn clear_handler(&mut self)
fn clear_handler(&mut self)
To remove the queue event handler.
Source§fn set_msg_handler(&mut self, handler: Arc<dyn MessageHandler>)
fn set_msg_handler(&mut self, handler: Arc<dyn MessageHandler>)
To set the queue message handler.
Auto Trait Implementations§
impl Freeze for AmqpQueue
impl RefUnwindSafe for AmqpQueue
impl Send for AmqpQueue
impl Sync for AmqpQueue
impl Unpin for AmqpQueue
impl UnwindSafe for AmqpQueue
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