pub struct AggregationParty {
pub id: u32,
pub value: i64,
pub masks_to_apply: HashMap<u32, i64>,
}Expand description
A party in the secure aggregation.
Fields§
§id: u32§value: i64§masks_to_apply: HashMap<u32, i64>Masks shared with other parties: mask[i][j] = random value added by i, subtracted by j.
Trait Implementations§
Source§impl Clone for AggregationParty
impl Clone for AggregationParty
Source§fn clone(&self) -> AggregationParty
fn clone(&self) -> AggregationParty
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 moreAuto Trait Implementations§
impl Freeze for AggregationParty
impl RefUnwindSafe for AggregationParty
impl Send for AggregationParty
impl Sync for AggregationParty
impl Unpin for AggregationParty
impl UnsafeUnpin for AggregationParty
impl UnwindSafe for AggregationParty
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