Struct dove::container::Container [−][src]
pub struct Container { /* fields omitted */ }
Expand description
Represents an AMQP 1.0 container that can manage multiple connections.
Implementations
Creates a new container that can be used to connect to AMQP endpoints. use the start() method to launch a worker thread that handles the connection processing, or invoke the run() method.
pub async fn connect<S: ToSocketAddrs + Send + 'static>(
&self,
host: S,
opts: ConnectionOptions
) -> Result<Connection>
pub async fn connect<S: ToSocketAddrs + Send + 'static>(
&self,
host: S,
opts: ConnectionOptions
) -> Result<Connection>
Connect to an AMQP endpoint and send the initial open performative.
Close the connection. Flushes outgoing buffer before sending the final close performative, and closing the connection.