[][src]Struct ntex_amqp::Connection

pub struct Connection(_);

Implementations

impl Connection[src]

pub fn force_close(&self)[src]

Force close connection

pub fn is_opened(&mut self) -> bool[src]

Check connection state

pub fn on_close(&self) -> Waiter[src]

Get waiter for on_close event

pub fn get_error(&self) -> Option<AmqpProtocolError>[src]

Get connection error

pub fn close(&self) -> impl Future<Output = Result<(), AmqpProtocolError>>[src]

Gracefully close connection

pub fn close_with_error<E>(
    &self,
    _err: E
) -> impl Future<Output = Result<(), AmqpProtocolError>> where
    Error: From<E>, 
[src]

Close connection with error

pub fn open_session(
    &self
) -> impl Future<Output = Result<Session, AmqpProtocolError>>
[src]

Opens the session

Trait Implementations

impl Clone for Connection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,