Trait lapin::Connect

source ·
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§

source

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

Implementations on Foreign Types§

source§

impl Connect for &str

source§

fn connect<'async_trait>( self, options: ConnectionProperties, config: OwnedTLSConfig ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait,

source§

impl Connect for AMQPUri

source§

fn connect<'async_trait>( self, options: ConnectionProperties, config: OwnedTLSConfig ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§