[][src]Struct lapin_async::connection::Connection

pub struct Connection {
    pub configuration: Configuration,
    pub status: ConnectionStatus,
    // some fields omitted
}

Fields

configuration: Configurationstatus: ConnectionStatus

Methods

impl Connection[src]

pub fn create_channel(&self) -> Result<Channel, Error>[src]

pub fn set_vhost(&self, vhost: &str)[src]

pub fn send_frame(
    &self,
    channel_id: u16,
    priority: Priority,
    frame: AMQPFrame,
    expected_reply: Option<Reply>
) -> Result<Wait<()>, Error>
[src]

pub fn next_expected_reply(&self, channel_id: u16) -> Option<Reply>[src]

pub fn next_frame(&self) -> Option<(SendId, AMQPFrame)>[src]

next message to send to the network

returns None if there's no message to send

pub fn handle_frame(&self, f: AMQPFrame) -> Result<(), Error>[src]

updates the current state with a new received frame

pub fn send_heartbeat(&self) -> Result<(), Error>[src]

pub fn mark_sent(&self, send_id: SendId)[src]

pub fn remove_channel(&self, channel_id: u16) -> Result<(), Error>[src]

pub fn set_closing(&self)[src]

pub fn set_closed(&self) -> Result<(), Error>[src]

pub fn set_error(&self) -> Result<(), Error>[src]

Trait Implementations

impl Clone for Connection[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Connection[src]

impl Debug for Connection[src]

impl Evented for Connection[src]

Auto Trait Implementations

impl Send for Connection

impl Sync for Connection

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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