Trait amq_protocol_tcp::AMQPUriTcpExt

source ·
pub trait AMQPUriTcpExt {
    // Required method
    fn connect_with_config(
        &self,
        config: TLSConfig<'_, '_, '_>
    ) -> HandshakeResult;

    // Provided method
    fn connect(&self) -> HandshakeResult
       where Self: Sized { ... }
}
Expand description

Trait providing a method to connect to a TcpStream

Required Methods§

source

fn connect_with_config(&self, config: TLSConfig<'_, '_, '_>) -> HandshakeResult

connect to a TcpStream with the given configuration

Provided Methods§

source

fn connect(&self) -> HandshakeResult
where Self: Sized,

connect to a TcpStream

Implementations on Foreign Types§

source§

impl AMQPUriTcpExt for AMQPUri

source§

fn connect_with_config(&self, config: TLSConfig<'_, '_, '_>) -> HandshakeResult

Implementors§