WIP: generalize for Gerrit / Floral #3
|
@ -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>>;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue