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>
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,
connect to an AMQP server
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