Trait sda_protocol::SdaRecipientService [] [src]

pub trait SdaRecipientService: SdaBaseService {
    fn create_aggregation(&self,
                          caller: &Agent,
                          aggregation: &Aggregation)
                          -> SdaResult<()>; fn delete_aggregation(&self,
                          caller: &Agent,
                          aggregation: &AggregationId)
                          -> SdaResult<()>; fn suggest_committee(&self,
                         caller: &Agent,
                         aggregation: &AggregationId)
                         -> SdaResult<Vec<ClerkCandidate>>; fn create_committee(&self,
                        caller: &Agent,
                        committee: &Committee)
                        -> SdaResult<()>; fn get_aggregation_status(&self,
                              caller: &Agent,
                              aggregation: &AggregationId)
                              -> SdaResult<Option<AggregationStatus>>; fn create_snapshot(&self,
                       caller: &Agent,
                       snapshot: &Snapshot)
                       -> SdaResult<()>; fn get_snapshot_result(&self,
                           caller: &Agent,
                           aggregation: &AggregationId,
                           snapshot: &SnapshotId)
                           -> SdaResult<Option<SnapshotResult>>; }

Methods used by the recipient in particular.

Required Methods

Create a new aggregation on the service (without any associated result). If successful, the original id has been replaced by the returned id.

Delete all information (including results) regarding an aggregation.

Propose suitable members for a committee, taking into account the aggregation constraints.

Set the committee for an aggregation.

Poll status of an aggregation.

Create a snapshot for an aggregation.

Retrieve results of an aggregation.

Implementors