Struct QueryId
pub struct QueryId(pub u64);Expand description
A caller-supplied opaque tag for a registered query, echoed back via
Query::id. The engine never interprets it — it does no id generation,
hashing, de-duplication, or refcounting. Identity and de-dup of “the same query” are
the caller’s concern: a layer that materializes/keeps each query’s state can map its
own ids to Query handles and reuse them, which is exactly the place that owns the
per-subscriber hydration the engine’s raw change stream deliberately does not. Pass
any scheme that suits you (a content hash, a uuid, a counter).
Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for QueryId
impl Ord for QueryId
§impl PartialOrd for QueryId
impl PartialOrd for QueryId
impl Copy for QueryId
impl Eq for QueryId
impl StructuralPartialEq for QueryId
Auto Trait Implementations§
impl Freeze for QueryId
impl RefUnwindSafe for QueryId
impl Send for QueryId
impl Sync for QueryId
impl Unpin for QueryId
impl UnsafeUnpin for QueryId
impl UnwindSafe for QueryId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.