Trait 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§