pub struct PreparedMcpGateway { /* private fields */ }Expand description
Listener + router prepared without spawning (TaskSupervisor / RuntimeService).
Implementations§
Source§impl PreparedMcpGateway
impl PreparedMcpGateway
Sourcepub fn handle(&self) -> McpGatewayHandle
pub fn handle(&self) -> McpGatewayHandle
Cloneable install/activate handle.
Sourcepub fn cancel_token(&self) -> CancellationToken
pub fn cancel_token(&self) -> CancellationToken
Cancellation token that stops Self::serve.
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Bound loopback address.
Sourcepub async fn serve(self)
pub async fn serve(self)
Serve until Self::cancel_token is cancelled. Revokes routes on exit.
Auto Trait Implementations§
impl !Freeze for PreparedMcpGateway
impl !RefUnwindSafe for PreparedMcpGateway
impl !UnwindSafe for PreparedMcpGateway
impl Send for PreparedMcpGateway
impl Sync for PreparedMcpGateway
impl Unpin for PreparedMcpGateway
impl UnsafeUnpin for PreparedMcpGateway
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