pub struct RestoredSession<'runner, Link, Response>{ /* private fields */ }Expand description
A restored stable-v1 session and the exact operation response that opened it.
The session ID comes from the load or resume request because stable-v1 restore responses do not repeat it. Keeping the response separate preserves every operation-specific field without reconstructing it from session state.
Implementations§
Source§impl<'runner, Link, Response> RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> RestoredSession<'runner, Link, Response>
Sourcepub fn session(&self) -> &ActiveSession<'runner, Link>
pub fn session(&self) -> &ActiveSession<'runner, Link>
Access the active session.
Sourcepub fn session_mut(&mut self) -> &mut ActiveSession<'runner, Link>
pub fn session_mut(&mut self) -> &mut ActiveSession<'runner, Link>
Mutably access the active session, for example to consume replay.
Sourcepub fn into_parts(self) -> (ActiveSession<'runner, Link>, Response)
pub fn into_parts(self) -> (ActiveSession<'runner, Link>, Response)
Split the restored value into its active session and exact response.
Sourcepub fn into_session(self) -> ActiveSession<'runner, Link>
pub fn into_session(self) -> ActiveSession<'runner, Link>
Consume this value and return only the active session.
Trait Implementations§
Auto Trait Implementations§
impl<'runner, Link, Response> !RefUnwindSafe for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> !UnwindSafe for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> Freeze for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> Send for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> Sync for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> Unpin for RestoredSession<'runner, Link, Response>
impl<'runner, Link, Response> UnsafeUnpin for RestoredSession<'runner, 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.