pub struct OpenedV2Session<Link, Response>{ /* private fields */ }Available on crate feature
unstable_protocol_v2 only.Expand description
A newly available protocol v2 session and its operation-specific response.
Keeping the response separate from V2Session avoids treating
session/new setup data as mutable session state and lets each setup
operation, including session/resume, retain its own complete response
type.
Implementations§
Source§impl<Link, Response> OpenedV2Session<Link, Response>
impl<Link, Response> OpenedV2Session<Link, Response>
Sourcepub fn response(&self) -> &Response
pub fn response(&self) -> &Response
Access the complete response from the operation that opened the session.
Sourcepub fn into_parts(self) -> (V2Session<Link>, Response)
pub fn into_parts(self) -> (V2Session<Link>, Response)
Split this result into the command handle and complete setup response.
Sourcepub fn into_session(self) -> V2Session<Link>
pub fn into_session(self) -> V2Session<Link>
Consume this result and return only the command handle.
Trait Implementations§
Auto Trait Implementations§
impl<Link, Response> !RefUnwindSafe for OpenedV2Session<Link, Response>
impl<Link, Response> !UnwindSafe for OpenedV2Session<Link, Response>
impl<Link, Response> Freeze for OpenedV2Session<Link, Response>
impl<Link, Response> Send for OpenedV2Session<Link, Response>
impl<Link, Response> Sync for OpenedV2Session<Link, Response>
impl<Link, Response> Unpin for OpenedV2Session<Link, Response>
impl<Link, Response> UnsafeUnpin for OpenedV2Session<Link, Response>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.