pub struct McpGateway;Expand description
MCP gateway constructors (no ambient spawn — Law 23).
Production RuntimeOwner uses PreparedMcpGateway under
TaskClass::RuntimeService. Standalone tests prepare + spawn explicitly.
Implementations§
Source§impl McpGateway
impl McpGateway
Sourcepub fn prepare_from_std_listener(
std_listener: TcpListener,
max_routes: usize,
request_owner: Option<Arc<dyn McpRequestOwner>>,
) -> Result<PreparedMcpGateway, McpInstallError>
pub fn prepare_from_std_listener( std_listener: TcpListener, max_routes: usize, request_owner: Option<Arc<dyn McpRequestOwner>>, ) -> Result<PreparedMcpGateway, McpInstallError>
Build from a pre-bound non-blocking std listener (fail-closed startup bind).
Sourcepub fn prepare_from_std_listener_with_limits(
std_listener: TcpListener,
max_routes: usize,
request_owner: Option<Arc<dyn McpRequestOwner>>,
limits: McpGatewayLimits,
) -> Result<PreparedMcpGateway, McpInstallError>
pub fn prepare_from_std_listener_with_limits( std_listener: TcpListener, max_routes: usize, request_owner: Option<Arc<dyn McpRequestOwner>>, limits: McpGatewayLimits, ) -> Result<PreparedMcpGateway, McpInstallError>
Self::prepare_from_std_listener with explicit concurrency/duration limits.
Sourcepub fn prepare_from_tokio_listener(
listener: TcpListener,
max_routes: usize,
request_owner: Option<Arc<dyn McpRequestOwner>>,
) -> Result<PreparedMcpGateway, McpInstallError>
pub fn prepare_from_tokio_listener( listener: TcpListener, max_routes: usize, request_owner: Option<Arc<dyn McpRequestOwner>>, ) -> Result<PreparedMcpGateway, McpInstallError>
Build from an already-bound Tokio loopback listener (no spawn).
Sourcepub fn prepare_from_tokio_listener_with_limits(
listener: TcpListener,
max_routes: usize,
request_owner: Option<Arc<dyn McpRequestOwner>>,
limits: McpGatewayLimits,
) -> Result<PreparedMcpGateway, McpInstallError>
pub fn prepare_from_tokio_listener_with_limits( listener: TcpListener, max_routes: usize, request_owner: Option<Arc<dyn McpRequestOwner>>, limits: McpGatewayLimits, ) -> Result<PreparedMcpGateway, McpInstallError>
Self::prepare_from_tokio_listener with explicit concurrency/duration limits.
Auto Trait Implementations§
impl Freeze for McpGateway
impl RefUnwindSafe for McpGateway
impl Send for McpGateway
impl Sync for McpGateway
impl Unpin for McpGateway
impl UnsafeUnpin for McpGateway
impl UnwindSafe for McpGateway
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