This commit is contained in:
Jon Häggblad
2022-11-09 10:21:25 +01:00
parent 6ba7c74dac
commit 7e6b97fd64
@@ -55,6 +55,16 @@ pub struct ProxyRunner<S> {
msg_chunker: Option<FreshInputMessageChunker<OsRng>>,
}
trait Chunker<S> {
fn chunk(&mut self, msg: S);
}
impl<S> Chunker<S> for FreshInputMessageChunker<OsRng> {
fn chunk(&mut self, msg: S) {
self.on_input_message(msg);
}
}
impl<S> ProxyRunner<S>
where
S: Send + 'static,