[−][src]Struct lapin::Connection
Methods
impl Connection
[src]
pub fn connect(uri: &str, options: ConnectionProperties) -> ConnectionPromise
[src]
Connect to an AMQP Server
pub fn connect_with_identity(
uri: &str,
options: ConnectionProperties,
identity: Identity
) -> ConnectionPromise
[src]
uri: &str,
options: ConnectionProperties,
identity: Identity
) -> ConnectionPromise
Connect to an AMQP Server
pub fn connect_uri(
uri: AMQPUri,
options: ConnectionProperties
) -> ConnectionPromise
[src]
uri: AMQPUri,
options: ConnectionProperties
) -> ConnectionPromise
Connect to an AMQP Server
pub fn connect_uri_with_identity(
uri: AMQPUri,
options: ConnectionProperties,
identity: Identity
) -> ConnectionPromise
[src]
uri: AMQPUri,
options: ConnectionProperties,
identity: Identity
) -> ConnectionPromise
Connect to an AMQP Server
pub fn create_channel(&self) -> PinkySwear<Result<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: Fn(Error) + Send + 'static>(&self, handler: Box<E>)
[src]
pub fn configuration(&self) -> &Configuration
[src]
pub fn status(&self) -> &ConnectionStatus
[src]
pub fn close(
&self,
reply_code: ShortUInt,
reply_text: &str
) -> PinkySwear<Result<()>>
[src]
&self,
reply_code: ShortUInt,
reply_text: &str
) -> PinkySwear<Result<()>>
pub fn block(&self, reason: &str) -> PinkySwear<Result<()>>
[src]
Block all consumers and publishers on this connection
pub fn unblock(&self) -> PinkySwear<Result<()>>
[src]
Unblock all consumers and publishers on this connection
pub fn update_secret(
&self,
new_secret: &str,
reason: &str
) -> PinkySwear<Result<()>>
[src]
&self,
new_secret: &str,
reason: &str
) -> PinkySwear<Result<()>>
Update the secret used by some authentication module such as oauth2
pub fn connector(
options: ConnectionProperties
) -> impl FnOnce(TcpStream, AMQPUri, Option<(Poll, Token)>) -> Result<ConnectionPromise> + 'static
[src]
options: ConnectionProperties
) -> impl FnOnce(TcpStream, AMQPUri, Option<(Poll, Token)>) -> Result<ConnectionPromise> + 'static
Trait Implementations
impl Clone for Connection
[src]
fn clone(&self) -> Connection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Connection
[src]
impl Default for Connection
[src]
impl Evented for Connection
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,