pub trait Connect {
// Required method
fn connect_raw(
self,
options: ConnectionProperties,
) -> Result<Wait<Connection>, Error>;
// Provided method
fn connect(self, options: ConnectionProperties) -> Confirmation<Connection>
where Self: Sized { ... }
}👎Deprecated:
use lapin instead
Expand description
Trait providing a method to connect to an AMQP server
Required Methods§
Sourcefn connect_raw(
self,
options: ConnectionProperties,
) -> Result<Wait<Connection>, Error>
👎Deprecated: use lapin instead
fn connect_raw( self, options: ConnectionProperties, ) -> Result<Wait<Connection>, Error>
use lapin instead
connect to an AMQP server, for internal use
Provided Methods§
Sourcefn connect(self, options: ConnectionProperties) -> Confirmation<Connection>where
Self: Sized,
👎Deprecated: use lapin instead
fn connect(self, options: ConnectionProperties) -> Confirmation<Connection>where
Self: Sized,
use lapin instead
connect to an AMQP server
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Connect for &str
impl Connect for &str
Source§fn connect_raw(
self,
options: ConnectionProperties,
) -> Result<Wait<Connection>, Error>
fn connect_raw( self, options: ConnectionProperties, ) -> Result<Wait<Connection>, Error>
👎Deprecated:
use lapin instead
Source§impl Connect for AMQPUri
impl Connect for AMQPUri
Source§fn connect_raw(
self,
options: ConnectionProperties,
) -> Result<Wait<Connection>, Error>
fn connect_raw( self, options: ConnectionProperties, ) -> Result<Wait<Connection>, Error>
👎Deprecated:
use lapin instead