pub struct OperatorSessionBindingProvider { /* private fields */ }Expand description
Binding provider backed by live Operator login records.
Implementations§
Trait Implementations§
Source§impl AgentBindingProvider for OperatorSessionBindingProvider
impl AgentBindingProvider for OperatorSessionBindingProvider
Source§fn pinned_to_session(
&self,
session_id: &str,
) -> Option<Arc<dyn AgentBindingProvider>>
fn pinned_to_session( &self, session_id: &str, ) -> Option<Arc<dyn AgentBindingProvider>>
Launch-scoped clone pinned to session_id, sharing the same live
session / role maps. An id that does not parse as a SessionId
cannot name a live session, so it yields None and the launch keeps
the unpinned provider — the pin’s fail-loud line is the compiler’s
pinned spawner lookup, which rejects that same id there.
Source§fn bind<'life0, 'life1, 'async_trait>(
&'life0 self,
requests: &'life1 [BindRequest],
) -> Pin<Box<dyn Future<Output = Result<Vec<BindOutcome>, BindingProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bind<'life0, 'life1, 'async_trait>(
&'life0 self,
requests: &'life1 [BindRequest],
) -> Pin<Box<dyn Future<Output = Result<Vec<BindOutcome>, BindingProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve all requested bindings as one launch-time transaction. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OperatorSessionBindingProvider
impl !UnwindSafe for OperatorSessionBindingProvider
impl Freeze for OperatorSessionBindingProvider
impl Send for OperatorSessionBindingProvider
impl Sync for OperatorSessionBindingProvider
impl Unpin for OperatorSessionBindingProvider
impl UnsafeUnpin for OperatorSessionBindingProvider
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
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