pub enum FoldQueryResponse {
Summaries {
kind: u16,
summaries: Vec<SummaryAnnouncement>,
},
Error(FoldQueryError),
}Expand description
Wire-shaped response. Postcard-encoded.
Variants§
Summaries
Successful read. Includes the kind the client requested (echoed for diagnostic clarity) and the matching summaries.
Fields
§
summaries: Vec<SummaryAnnouncement>Per-subnet summaries the aggregator’s summarizer produced. May be empty when the aggregator’s source fold is empty.
Error(FoldQueryError)
Handler-level rejection. Aggregator-as-server doesn’t
distinguish transport-level errors here — those surface
to the client as the substrate’s RpcError.
Trait Implementations§
Source§impl Clone for FoldQueryResponse
impl Clone for FoldQueryResponse
Source§fn clone(&self) -> FoldQueryResponse
fn clone(&self) -> FoldQueryResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FoldQueryResponse
impl Debug for FoldQueryResponse
Source§impl<'de> Deserialize<'de> for FoldQueryResponse
impl<'de> Deserialize<'de> for FoldQueryResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FoldQueryResponse
impl PartialEq for FoldQueryResponse
Source§fn eq(&self, other: &FoldQueryResponse) -> bool
fn eq(&self, other: &FoldQueryResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FoldQueryResponse
impl Serialize for FoldQueryResponse
impl Eq for FoldQueryResponse
impl StructuralPartialEq for FoldQueryResponse
Auto Trait Implementations§
impl Freeze for FoldQueryResponse
impl RefUnwindSafe for FoldQueryResponse
impl Send for FoldQueryResponse
impl Sync for FoldQueryResponse
impl Unpin for FoldQueryResponse
impl UnsafeUnpin for FoldQueryResponse
impl UnwindSafe for FoldQueryResponse
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.