pub struct EnvGatewayKeyResolver { /* private fields */ }Expand description
Default resolver: returns the single configured environment gateway key for every org (the unchanged local/default behavior — no per-org scoping).
Constructed from the server’s resolved gateway key. When the env key is
absent (None), this resolver returns None for every org, so the server
behaves exactly as it does today (a clean LLM_UNAVAILABLE error on a turn).
Implementations§
Trait Implementations§
Source§impl Clone for EnvGatewayKeyResolver
impl Clone for EnvGatewayKeyResolver
Source§fn clone(&self) -> EnvGatewayKeyResolver
fn clone(&self) -> EnvGatewayKeyResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvGatewayKeyResolver
impl Debug for EnvGatewayKeyResolver
Source§impl Default for EnvGatewayKeyResolver
impl Default for EnvGatewayKeyResolver
Source§fn default() -> EnvGatewayKeyResolver
fn default() -> EnvGatewayKeyResolver
Returns the “default value” for a type. Read more
Source§impl GatewayKeyResolver for EnvGatewayKeyResolver
impl GatewayKeyResolver for EnvGatewayKeyResolver
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_org_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_org_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The gateway key to bill/scope this
org_id’s turn to, or None to use
the server’s default (env) key.Auto Trait Implementations§
impl Freeze for EnvGatewayKeyResolver
impl RefUnwindSafe for EnvGatewayKeyResolver
impl Send for EnvGatewayKeyResolver
impl Sync for EnvGatewayKeyResolver
impl Unpin for EnvGatewayKeyResolver
impl UnsafeUnpin for EnvGatewayKeyResolver
impl UnwindSafe for EnvGatewayKeyResolver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request