Struct convex::QueryResults
source · pub struct QueryResults { /* private fields */ }
Expand description
A mapping from SubscriberId
to its current result FunctionResult
for each actively subscribed query.
Implementations§
source§impl QueryResults
impl QueryResults
sourcepub fn get(&self, subscriber_id: &SubscriberId) -> Option<&FunctionResult>
pub fn get(&self, subscriber_id: &SubscriberId) -> Option<&FunctionResult>
Get the FunctionResult
for the given SubscriberId
sourcepub fn iter(
&self
) -> impl Iterator<Item = (&SubscriberId, Option<&FunctionResult>)>
pub fn iter( &self ) -> impl Iterator<Item = (&SubscriberId, Option<&FunctionResult>)>
Get an iterator over the subscriber_id/query_result pairs of the map.
Trait Implementations§
source§impl Clone for QueryResults
impl Clone for QueryResults
source§fn clone(&self) -> QueryResults
fn clone(&self) -> QueryResults
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueryResults
impl Debug for QueryResults
source§impl Default for QueryResults
impl Default for QueryResults
source§fn default() -> QueryResults
fn default() -> QueryResults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for QueryResults
impl Send for QueryResults
impl Sync for QueryResults
impl Unpin for QueryResults
impl UnwindSafe for QueryResults
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