Skip to main content

InProcessTransportFactory

Trait InProcessTransportFactory 

Source
pub trait InProcessTransportFactory: Send + Sync {
    // Required method
    fn open(&self) -> BoxFuture<'static, Result<DuplexStream>>;
}
Expand description

Recreates a fresh in-process MCP byte stream whenever the client needs one.

Implementations are expected to start the paired server side before returning the client stream. The factory is retained by crate::RmcpClient so reconnects can rebuild the transport without knowing which built-in server produced it.

Required Methods§

Source

fn open(&self) -> BoxFuture<'static, Result<DuplexStream>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§