Trait sda_client::Participating [] [src]

pub trait Participating {
    fn new_participation(&self,
                         input: &ParticipantInput,
                         aggregation: &AggregationId)
                         -> SdaClientResult<Participation>; fn upload_participation(&self, input: &Participation) -> SdaClientResult<()>; fn participate(&self,
                   input: Vec<i64>,
                   aggregation: &AggregationId)
                   -> SdaClientResult<()>; }

Basic tasks typically performed by a participant.

Required Methods

Create a new participation to the given aggregation.

Having this as a seperate method allows background computation and retrying in case of network failure, without risk of recomputation and double participation.

Upload participation to the service.

Helper method combining new_participation and upload_participation.

Implementors