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
fn new_participation(&self,
input: &ParticipantInput,
aggregation: &AggregationId)
-> SdaClientResult<Participation>
input: &ParticipantInput,
aggregation: &AggregationId)
-> SdaClientResult<Participation>
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.
fn upload_participation(&self, input: &Participation) -> SdaClientResult<()>
Upload participation to the service.
fn participate(&self,
input: Vec<i64>,
aggregation: &AggregationId)
-> SdaClientResult<()>
input: Vec<i64>,
aggregation: &AggregationId)
-> SdaClientResult<()>
Helper method combining new_participation and upload_participation.
Implementors
impl Participating for SdaClient