pub async fn stateless_mock_responder<S, F>(
handles: LocalComponentHandles,
responder: F,
) -> Result<(), Error>where
S: DiscoverableProtocolMarker,
<<S as ProtocolMarker>::RequestStream as TryStream>::Ok: Debug,
F: Fn(<<S as ProtocolMarker>::RequestStream as TryStream>::Ok) -> Result<(), Error> + Copy + Send + 'static,Expand description
A mock component serving a protocol S on handles. Specifically, this services S by calling
responder for every request of every client connection to S.