pub struct OpenSession { /* private fields */ }Expand description
Open new session
Implementations§
Source§impl OpenSession
impl OpenSession
Sourcepub fn offered_capabilities(self, caps: Symbols) -> Self
pub fn offered_capabilities(self, caps: Symbols) -> Self
Set session offered capabilities
Sourcepub fn desired_capabilities(self, caps: Symbols) -> Self
pub fn desired_capabilities(self, caps: Symbols) -> Self
Set session desired capabilities
Sourcepub async fn attach(self) -> Result<Session, AmqpProtocolError>
pub async fn attach(self) -> Result<Session, AmqpProtocolError>
Attach session
Trait Implementations§
Source§impl Future for OpenSession
impl Future for OpenSession
Auto Trait Implementations§
impl Freeze for OpenSession
impl !RefUnwindSafe for OpenSession
impl !Send for OpenSession
impl !Sync for OpenSession
impl Unpin for OpenSession
impl UnsafeUnpin for OpenSession
impl !UnwindSafe for OpenSession
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more