WIP: generalize for Gerrit / Floral #3

Draft
raito wants to merge 33 commits from vcs-generalization into main
Showing only changes of commit 855bde2a4c - Show all commits

View file

@ -1,5 +1,6 @@
use std::marker::Send; use std::marker::Send;
use futures::Stream;
use serde::Serialize; use serde::Serialize;
pub struct Response {} pub struct Response {}
@ -68,3 +69,7 @@ pub trait SimpleWorker: Send {
body: &[u8], body: &[u8],
) -> Result<Self::J, String>; ) -> Result<Self::J, String>;
} }
pub trait StreamWorker: Send {
fn publisher(&mut self, chan: &mut lapin::Channel) -> impl Stream<Item = Box<QueueMsg>>;
}