pub struct TcpMockServer { /* private fields */ }Expand description
A MockProtocolServer wrapper around TcpServer.
Constructs the TCP server and spec registry, then delegates to
TcpServer::start with shutdown-signal integration.
Implementations§
Trait Implementations§
Source§impl MockProtocolServer for TcpMockServer
impl MockProtocolServer for TcpMockServer
Source§fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the server, running until the shutdown signal is received. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Human-readable description for logging (e.g., “gRPC server on port 50051”).
Auto Trait Implementations§
impl Freeze for TcpMockServer
impl RefUnwindSafe for TcpMockServer
impl Send for TcpMockServer
impl Sync for TcpMockServer
impl Unpin for TcpMockServer
impl UnsafeUnpin for TcpMockServer
impl UnwindSafe for TcpMockServer
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