[−]Struct lapin_futures_tls_api::lapin::client::Client
the Client structures connects to a server and creates channels
Fields
configuration: ConfigurationMethods
impl<T> Client<T> where
T: 'static + Send + Sync + AsyncRead + AsyncWrite,
T: 'static + Send + Sync + AsyncRead + AsyncWrite,
pub fn connect(
stream: T,
options: ConnectionOptions
) -> impl Send + Future<Item = (Client<T>, Heartbeat<impl Send + Future<Item = (), Error = Error> + 'static>), Error = Error> + 'static
stream: T,
options: ConnectionOptions
) -> impl Send + Future<Item = (Client<T>, Heartbeat<impl Send + Future<Item = (), Error = Error> + 'static>), Error = Error> + 'static
Takes a stream (TCP, TLS, unix socket, etc) and uses it to connect to an AMQP server.
This function returns a future that resolves once the connection handshake is done.
The result is a tuple containing a Client that can be used to create Channels and a
Heartbeat instance. The heartbeat is a task (it implements Future) that should be
spawned independently of the other futures.
To stop the heartbeat task, see HeartbeatHandle.
pub fn create_channel(
&self
) -> impl Send + Future<Item = Channel<T>, Error = Error> + 'static
&self
) -> impl Send + Future<Item = Channel<T>, Error = Error> + 'static
creates a new channel
returns a future that resolves to a Channel once the method succeeds
pub fn create_confirm_channel(
&self,
options: ConfirmSelectOptions
) -> impl Send + Future<Item = Channel<T>, Error = Error> + 'static
&self,
options: ConfirmSelectOptions
) -> impl Send + Future<Item = Channel<T>, Error = Error> + 'static
returns a future that resolves to a Channel once the method succeeds
the channel will support RabbitMQ's confirm extension
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,