pub trait Connect {
// Required method
fn connect<'async_trait>(
self,
options: ConnectionProperties,
config: OwnedTLSConfig,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
Trait providing a method to connect to an AMQP server
Required Methods§
Sourcefn connect<'async_trait>(
self,
options: ConnectionProperties,
config: OwnedTLSConfig,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
fn connect<'async_trait>(
self,
options: ConnectionProperties,
config: OwnedTLSConfig,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
connect to an AMQP server