Struct sda_server::SdaServer 
                   
                       [−]
                   
               [src]
pub struct SdaServer {
    pub agents_store: Box<AgentsStore>,
    pub auth_tokens_store: Box<AuthTokensStore>,
    pub aggregation_store: Box<AggregationsStore>,
    pub clerking_job_store: Box<ClerkingJobsStore>,
}Fields
agents_store: Box<AgentsStore>
                           
                           
                           auth_tokens_store: Box<AuthTokensStore>
                           
                           
                           aggregation_store: Box<AggregationsStore>
                           
                           
                           clerking_job_store: Box<ClerkingJobsStore>
                           Methods
impl SdaServer[src]
fn ping(&self) -> SdaServerResult<Pong>
fn create_agent(&self, agent: &Agent) -> SdaServerResult<()>
fn get_agent(&self, id: &AgentId) -> SdaServerResult<Option<Agent>>
fn upsert_profile(&self, profile: &Profile) -> SdaServerResult<()>
fn get_profile(&self, agent: &AgentId) -> SdaServerResult<Option<Profile>>
fn create_encryption_key(&self,
                         key: &SignedEncryptionKey)
                         -> SdaServerResult<()>
key: &SignedEncryptionKey)
-> SdaServerResult<()>
fn get_encryption_key(&self,
                      key: &EncryptionKeyId)
                      -> SdaServerResult<Option<SignedEncryptionKey>>
key: &EncryptionKeyId)
-> SdaServerResult<Option<SignedEncryptionKey>>
fn list_aggregations(&self,
                     filter: Option<&str>,
                     recipient: Option<&AgentId>)
                     -> SdaServerResult<Vec<AggregationId>>
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaServerResult<Vec<AggregationId>>
fn get_aggregation(&self,
                   aggregation: &AggregationId)
                   -> SdaServerResult<Option<Aggregation>>
aggregation: &AggregationId)
-> SdaServerResult<Option<Aggregation>>
fn get_committee(&self,
                 aggregation: &AggregationId)
                 -> SdaServerResult<Option<Committee>>
aggregation: &AggregationId)
-> SdaServerResult<Option<Committee>>
fn create_aggregation(&self, aggregation: &Aggregation) -> SdaServerResult<()>
fn delete_aggregation(&self, aggregation: &AggregationId) -> SdaServerResult<()>
fn suggest_committee(&self,
                     aggregation: &AggregationId)
                     -> SdaServerResult<Vec<ClerkCandidate>>
aggregation: &AggregationId)
-> SdaServerResult<Vec<ClerkCandidate>>
fn create_committee(&self, committee: &Committee) -> SdaServerResult<()>
fn create_participation(&self,
                        participation: &Participation)
                        -> SdaServerResult<()>
participation: &Participation)
-> SdaServerResult<()>
fn get_aggregation_status(&self,
                          aggregation: &AggregationId)
                          -> SdaServerResult<Option<AggregationStatus>>
aggregation: &AggregationId)
-> SdaServerResult<Option<AggregationStatus>>
fn create_snapshot(&self, snapshot: &Snapshot) -> SdaServerResult<()>
fn poll_clerking_job(&self,
                     clerk: &AgentId)
                     -> SdaServerResult<Option<ClerkingJob>>
clerk: &AgentId)
-> SdaServerResult<Option<ClerkingJob>>
fn get_clerking_job(&self,
                    clerk: &AgentId,
                    job: &ClerkingJobId)
                    -> SdaServerResult<Option<ClerkingJob>>
clerk: &AgentId,
job: &ClerkingJobId)
-> SdaServerResult<Option<ClerkingJob>>
fn create_clerking_result(&self, result: &ClerkingResult) -> SdaServerResult<()>
fn get_snapshot_result(&self,
                       aggregation: &AggregationId,
                       snapshot: &SnapshotId)
                       -> SdaServerResult<Option<SnapshotResult>>
aggregation: &AggregationId,
snapshot: &SnapshotId)
-> SdaServerResult<Option<SnapshotResult>>