[−][src]Struct lapin::Connection
Methods
impl Connection
[src]
pub fn connect(
uri: &str,
options: ConnectionProperties
) -> CloseOnDropPromise<Connection>
[src]
uri: &str,
options: ConnectionProperties
) -> CloseOnDropPromise<Connection>
Connect to an AMQP Server
pub fn connect_with_identity(
uri: &str,
options: ConnectionProperties,
identity: Identity
) -> CloseOnDropPromise<Connection>
[src]
uri: &str,
options: ConnectionProperties,
identity: Identity
) -> CloseOnDropPromise<Connection>
Connect to an AMQP Server
pub fn connect_uri(
uri: AMQPUri,
options: ConnectionProperties
) -> CloseOnDropPromise<Connection>
[src]
uri: AMQPUri,
options: ConnectionProperties
) -> CloseOnDropPromise<Connection>
Connect to an AMQP Server
pub fn connect_uri_with_identity(
uri: AMQPUri,
options: ConnectionProperties,
identity: Identity
) -> CloseOnDropPromise<Connection>
[src]
uri: AMQPUri,
options: ConnectionProperties,
identity: Identity
) -> CloseOnDropPromise<Connection>
Connect to an AMQP Server
pub fn create_channel(&self) -> CloseOnDropPromise<Channel>
[src]
pub fn run(&self) -> Result<()>
[src]
Block current thread while the connection is still active. This is useful when you only have a consumer and nothing else keeping your application "alive".
pub fn on_error<E: FnMut(Error) + Send + 'static>(&self, handler: E)
[src]
pub fn configuration(&self) -> &Configuration
[src]
pub fn status(&self) -> &ConnectionStatus
[src]
pub fn close(&self, reply_code: ShortUInt, reply_text: &str) -> Promise<()>
[src]
pub fn block(&self, reason: &str) -> Promise<()>
[src]
Block all consumers and publishers on this connection
pub fn unblock(&self) -> Promise<()>
[src]
Unblock all consumers and publishers on this connection
pub fn update_secret(&self, new_secret: &str, reason: &str) -> Promise<()>
[src]
Update the secret used by some authentication module such as OAuth2
pub fn connector(
options: ConnectionProperties
) -> impl FnOnce(AMQPUri, HandshakeResult) -> CloseOnDropPromise<Connection> + 'static
[src]
options: ConnectionProperties
) -> impl FnOnce(AMQPUri, HandshakeResult) -> CloseOnDropPromise<Connection> + 'static
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,