pub struct RawQueryable {
pub tx: HashMap<Uuid, Sender<DataflowMessage>>,
pub rx: Receiver<DataflowMessage>,
pub clock: Arc<HLC>,
pub source: NodeID,
pub layout: QueryableID,
}Expand description
Not typed Queryable to receive data from the dataflow
Fields§
§tx: HashMap<Uuid, Sender<DataflowMessage>>The sender part of the MPSC channel with the Query
rx: Receiver<DataflowMessage>The receiver part of the MPSC channel with the Query
clock: Arc<HLC>Shared clock with the runtime
source: NodeIDThe source node layout, useful for debugging
layout: QueryableIDThe layout of the queryable, useful for debugging
Implementations§
Source§impl RawQueryable
impl RawQueryable
Sourcepub fn new(
tx: HashMap<Uuid, Sender<DataflowMessage>>,
rx: Receiver<DataflowMessage>,
clock: Arc<HLC>,
source: NodeID,
layout: QueryableID,
) -> RawQueryable
pub fn new( tx: HashMap<Uuid, Sender<DataflowMessage>>, rx: Receiver<DataflowMessage>, clock: Arc<HLC>, source: NodeID, layout: QueryableID, ) -> RawQueryable
Create a new RawQueryable instance
Sourcepub async fn on_query(
&mut self,
response: impl AsyncFnOnce(DataflowMessage) -> Result<ArrayData, Report>,
) -> Result<(), Report>
pub async fn on_query( &mut self, response: impl AsyncFnOnce(DataflowMessage) -> Result<ArrayData, Report>, ) -> Result<(), Report>
Let the queryable handle a message asynchronously
Auto Trait Implementations§
impl Freeze for RawQueryable
impl !RefUnwindSafe for RawQueryable
impl Send for RawQueryable
impl Sync for RawQueryable
impl Unpin for RawQueryable
impl !UnwindSafe for RawQueryable
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