pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
Sourcepub fn remote_config(&self) -> &Configuration
pub fn remote_config(&self) -> &Configuration
Get remote connection configuration
pub fn close(&self) -> impl Future<Output = Result<(), AmqpTransportError>>
pub fn get_sender_link(&self, name: &str) -> Option<&SenderLink>
pub fn get_sender_link_by_handle(&self, hnd: Handle) -> Option<&SenderLink>
pub fn get_receiver_link_by_handle(&self, hnd: Handle) -> Option<&ReceiverLink>
Sourcepub fn build_sender_link<T: Into<String>, U: Into<String>>(
&mut self,
name: U,
address: T,
) -> SenderLinkBuilder
pub fn build_sender_link<T: Into<String>, U: Into<String>>( &mut self, name: U, address: T, ) -> SenderLinkBuilder
Open sender link
Sourcepub fn build_receiver_link<T: Into<String>, U: Into<String>>(
&mut self,
name: U,
address: T,
) -> ReceiverLinkBuilder
pub fn build_receiver_link<T: Into<String>, U: Into<String>>( &mut self, name: U, address: T, ) -> ReceiverLinkBuilder
Open receiver link
Sourcepub fn detach_receiver_link(
&mut self,
handle: Handle,
error: Option<Error>,
) -> impl Future<Output = Result<(), AmqpTransportError>>
pub fn detach_receiver_link( &mut self, handle: Handle, error: Option<Error>, ) -> impl Future<Output = Result<(), AmqpTransportError>>
Detach receiver link
pub fn wait_disposition( &mut self, id: DeliveryNumber, ) -> impl Future<Output = Result<Disposition, AmqpTransportError>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl !Send for Session
impl !Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more