pub struct RawQueryable {
pub tx: HashMap<Uuid, MessageSender>,
pub rx: MessageReceiver,
pub clock: Arc<HLC>,
pub source: NodeLayout,
pub layout: QueryableLayout,
}
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: NodeLayout
The source node layout, useful for debugging
layout: QueryableLayout
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: NodeLayout,
layout: QueryableLayout,
) -> Self
pub fn new( tx: HashMap<Uuid, MessageSender>, rx: MessageReceiver, clock: Arc<HLC>, source: NodeLayout, layout: QueryableLayout, ) -> Self
Create a new RawQueryable instance
Sourcepub fn blocking_on_demand(
&mut self,
response: impl FnOnce(DataflowMessage) -> Result<ArrayData>,
) -> Result<()>
pub fn blocking_on_demand( &mut self, response: impl FnOnce(DataflowMessage) -> Result<ArrayData>, ) -> Result<()>
Let the queryable handle a message
Sourcepub async fn on_demand(
&mut self,
response: impl AsyncFnOnce(DataflowMessage) -> Result<ArrayData>,
) -> Result<()>
pub async fn on_demand( &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