pub struct GatewayApplicationPort { /* private fields */ }Expand description
soma-gateway’s GatewayProductState is Arc<GatewayManager> — this
adapter takes the manager directly rather than depending on soma-runtime
for the type alias, keeping this crate’s dependency shape limited to
soma-application, soma-domain, and soma-gateway.
Implementations§
Trait Implementations§
Source§impl GatewayPort for GatewayApplicationPort
impl GatewayPort for GatewayApplicationPort
Source§fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the gateway’s current status snapshot.
Source§fn reload<'life0, 'life1, 'async_trait>(
&'life0 self,
request: GatewayReloadRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reload<'life0, 'life1, 'async_trait>(
&'life0 self,
request: GatewayReloadRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reloads the gateway configuration.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: GatewayExecuteRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: GatewayExecuteRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a gateway operation.
Source§fn list_mcp_tools<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayToolRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_mcp_tools<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayToolRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Lists MCP tool routes exposed through the gateway, optionally scoped.
Source§fn call_mcp_tool<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
params: Value,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn call_mcp_tool<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
params: Value,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Calls an MCP tool by name through the gateway.
Source§fn list_mcp_resources<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayResourceRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_mcp_resources<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayResourceRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Lists MCP resource routes exposed through the gateway, optionally scoped.
Source§fn read_mcp_resource<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
uri: &'life1 str,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn read_mcp_resource<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
uri: &'life1 str,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads an MCP resource by URI through the gateway.
Source§fn list_mcp_prompts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayPromptRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_mcp_prompts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: Option<&'life1 GatewayRouteScope>,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayPromptRoute>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Lists MCP prompt routes exposed through the gateway, optionally scoped.
Source§fn get_mcp_prompt<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
arguments: Option<Map<String, Value>>,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_mcp_prompt<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
arguments: Option<Map<String, Value>>,
scope: Option<&'life2 GatewayRouteScope>,
context: &'life3 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Gets an MCP prompt by name, with optional arguments, through the gateway.
Auto Trait Implementations§
impl Freeze for GatewayApplicationPort
impl !RefUnwindSafe for GatewayApplicationPort
impl Send for GatewayApplicationPort
impl Sync for GatewayApplicationPort
impl Unpin for GatewayApplicationPort
impl UnsafeUnpin for GatewayApplicationPort
impl !UnwindSafe for GatewayApplicationPort
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<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