pub struct SessionTurn {
pub session: ExecSession,
pub pinned: Option<String>,
pub on_selected: Option<OnSelected>,
pub home: Option<Arc<SessionHome>>,
}Expand description
How a session transport runs one turn through run (Go
ExecuteStreamWithAuthManager with WithPinnedAuthID,
WithSelectedAuthIDCallback and the execution session).
Fields§
§session: ExecSessionPassed to cpa_exec::Executors::execute_in_session for every attempt.
pinned: Option<String>Only this credential may serve the turn (WithPinnedAuthID); every retry round
excludes all others.
on_selected: Option<OnSelected>Called with each credential right before it is attempted
(WithSelectedAuthIDCallback); the last call before success is the serving one.
home: Option<Arc<SessionHome>>The Home pick the connection’s pooled upstream socket keeps between turns; none keeps every Home pick to its turn.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionTurn
impl !UnwindSafe for SessionTurn
impl Forget for SessionTurn
impl Freeze for SessionTurn
impl Move for SessionTurn
impl Send for SessionTurn
impl Sync for SessionTurn
impl Unpin for SessionTurn
impl UnsafeUnpin for SessionTurn
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> 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