pub struct SomaRuntime { /* private fields */ }Expand description
Shared application state injected into every request handler.
Implementations§
Source§impl SomaRuntime
impl SomaRuntime
pub fn new( application: Arc<SomaApplication>, gateway: GatewayProductState, ) -> Self
pub fn application(&self) -> &SomaApplication
pub fn application_handle(&self) -> Arc<SomaApplication> ⓘ
pub fn resolve_protected_route( &self, host: &str, path: &str, ) -> Option<ProtectedMcpRouteConfig>
pub fn resolve_protected_route_metadata( &self, host: &str, path: &str, ) -> Option<ProtectedMcpRouteConfig>
pub fn protected_route_list(&self) -> Vec<ProtectedMcpRouteConfig>
pub fn upstream_config(&self, name: &str) -> Option<UpstreamConfig>
pub async fn upstream_oauth_access_token( &self, upstream: &UpstreamConfig, subject: &str, ) -> Result<Option<String>, GatewayManagerError>
Trait Implementations§
Source§impl Clone for SomaRuntime
impl Clone for SomaRuntime
Source§fn clone(&self) -> SomaRuntime
fn clone(&self) -> SomaRuntime
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 moreAuto Trait Implementations§
impl Freeze for SomaRuntime
impl !RefUnwindSafe for SomaRuntime
impl Send for SomaRuntime
impl Sync for SomaRuntime
impl Unpin for SomaRuntime
impl UnsafeUnpin for SomaRuntime
impl !UnwindSafe for SomaRuntime
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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