pub struct Connection { /* private fields */ }
๐Deprecated: use lapin instead
Implementationsยง
Sourceยงimpl Connection
impl Connection
Sourcepub fn connect(
uri: &str,
options: ConnectionProperties,
) -> Confirmation<Connection>
๐Deprecated: use lapin instead
pub fn connect( uri: &str, options: ConnectionProperties, ) -> Confirmation<Connection>
Connect to an AMQP Server
Sourcepub fn connect_uri(
uri: AMQPUri,
options: ConnectionProperties,
) -> Confirmation<Connection>
๐Deprecated: use lapin instead
pub fn connect_uri( uri: AMQPUri, options: ConnectionProperties, ) -> Confirmation<Connection>
Connect to an AMQP Server
pub fn create_channel(&self) -> Confirmation<Channel>
๐Deprecated: use lapin instead
Sourcepub fn run(&self) -> Result<(), Error>
๐Deprecated: use lapin instead
pub fn run(&self) -> Result<(), Error>
Block current thread while the connection is still active. This is useful when you only have a consumer and nothing else keeping your application โaliveโ.
pub fn on_error<E: Fn() + Send + 'static>(&self, handler: Box<E>)
๐Deprecated: use lapin instead
pub fn configuration(&self) -> &Configuration
๐Deprecated: use lapin instead
pub fn status(&self) -> &ConnectionStatus
๐Deprecated: use lapin instead
pub fn close(&self, reply_code: ShortUInt, reply_text: &str) -> Confirmation<()>
๐Deprecated: use lapin instead
Trait Implementationsยง
Sourceยงimpl Clone for Connection
impl Clone for Connection
Sourceยงfn clone(&self) -> Connection
fn clone(&self) -> Connection
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 Connection
impl Debug for Connection
Sourceยงimpl Default for Connection
impl Default for Connection
Auto Trait Implementationsยง
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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