pub struct RawQueryable {
pub tx: HashMap<Uuid, MessageSender>,
pub rx: MessageReceiver,
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, MessageSender>
The sender part of the MPSC channel with the Query
rx: MessageReceiver
The receiver part of the MPSC channel with the Query
clock: Arc<HLC>
Shared clock with the runtime
source: NodeID
The source node layout, useful for debugging
layout: QueryableID
The layout of the queryable, useful for debugging
Implementations§
Source§impl RawQueryable
impl RawQueryable
Sourcepub fn new(
tx: HashMap<Uuid, MessageSender>,
rx: MessageReceiver,
clock: Arc<HLC>,
source: NodeID,
layout: QueryableID,
) -> Self
pub fn new( tx: HashMap<Uuid, MessageSender>, rx: MessageReceiver, clock: Arc<HLC>, source: NodeID, layout: QueryableID, ) -> Self
Create a new RawQueryable instance
Sourcepub async fn on_query(
&mut self,
response: impl AsyncFnOnce(DataflowMessage) -> Result<ArrayData>,
) -> Result<()>
pub async fn on_query( &mut self, response: impl AsyncFnOnce(DataflowMessage) -> Result<ArrayData>, ) -> Result<()>
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