pub struct AmqpConnection { /* private fields */ }Expand description
Manages an AMQP connection.
Implementations§
Source§impl AmqpConnection
impl AmqpConnection
Sourcepub fn new(opts: AmqpConnectionOptions) -> Result<AmqpConnection, String>
pub fn new(opts: AmqpConnectionOptions) -> Result<AmqpConnection, String>
Create a connection instance.
Trait Implementations§
Source§impl Clone for AmqpConnection
impl Clone for AmqpConnection
Source§fn clone(&self) -> AmqpConnection
fn clone(&self) -> AmqpConnection
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 GmqConnection for AmqpConnection
impl GmqConnection for AmqpConnection
Source§fn add_handler(&mut self, handler: Arc<dyn EventHandler>) -> String
fn add_handler(&mut self, handler: Arc<dyn EventHandler>) -> String
To add a connection event handler. This will return an identifier for applications to manage
handlers.
Source§fn remove_handler(&mut self, id: &str)
fn remove_handler(&mut self, id: &str)
To remove a handler with an idenfier from
GmqConnection::add_handler.Auto Trait Implementations§
impl Freeze for AmqpConnection
impl !RefUnwindSafe for AmqpConnection
impl Send for AmqpConnection
impl Sync for AmqpConnection
impl Unpin for AmqpConnection
impl !UnwindSafe for AmqpConnection
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