Struct messaging_thread_pool::samples::SumOfSumsResponse
source · Expand description
This response is returned from a request to calculate the sum of sums of all contained Randoms
Fields§
§id: usize§sum_of_sums: u128Implementations§
source§impl SumOfSumsResponse
impl SumOfSumsResponse
pub fn sum_of_sums(&self) -> u128
Trait Implementations§
source§impl Clone for SumOfSumsResponse
impl Clone for SumOfSumsResponse
source§fn clone(&self) -> SumOfSumsResponse
fn clone(&self) -> SumOfSumsResponse
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 SumOfSumsResponse
impl Debug for SumOfSumsResponse
source§impl<P> From<SumOfSumsResponse> for ThreadRequestResponse<RandomsBatch<P>>where
P: SenderAndReceiver<Randoms> + Send + Debug + Sync,
impl<P> From<SumOfSumsResponse> for ThreadRequestResponse<RandomsBatch<P>>where
P: SenderAndReceiver<Randoms> + Send + Debug + Sync,
source§fn from(response: SumOfSumsResponse) -> Self
fn from(response: SumOfSumsResponse) -> Self
Converts to this type from the input type.
source§impl<P> From<ThreadRequestResponse<RandomsBatch<P>>> for SumOfSumsResponsewhere
P: SenderAndReceiver<Randoms> + Send + Debug + Sync,
impl<P> From<ThreadRequestResponse<RandomsBatch<P>>> for SumOfSumsResponsewhere
P: SenderAndReceiver<Randoms> + Send + Debug + Sync,
source§fn from(response: ThreadRequestResponse<RandomsBatch<P>>) -> Self
fn from(response: ThreadRequestResponse<RandomsBatch<P>>) -> Self
Converts to this type from the input type.
source§impl PartialEq<SumOfSumsResponse> for SumOfSumsResponse
impl PartialEq<SumOfSumsResponse> for SumOfSumsResponse
source§fn eq(&self, other: &SumOfSumsResponse) -> bool
fn eq(&self, other: &SumOfSumsResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.