Struct sda_server::SdaServerService
[−]
[src]
pub struct SdaServerService(pub SdaServer);
Trait Implementations
impl SdaService for SdaServerService
[src]
impl SdaBaseService for SdaServerService
[src]
fn ping(&self) -> SdaResult<Pong>
Send a ping to the service, expecting a pong in return if everything appears to be running.
impl SdaAgentService for SdaServerService
[src]
fn create_agent(&self, caller: &Agent, agent: &Agent) -> SdaResult<()>
Create an agent.
fn get_agent(&self,
_caller: &Agent,
owner: &AgentId)
-> SdaResult<Option<Agent>>
_caller: &Agent,
owner: &AgentId)
-> SdaResult<Option<Agent>>
Retrieve the agent description.
fn upsert_profile(&self, caller: &Agent, profile: &Profile) -> SdaResult<()>
Register the given public profile; updates any existing profile.
fn get_profile(&self,
_caller: &Agent,
owner: &AgentId)
-> SdaResult<Option<Profile>>
_caller: &Agent,
owner: &AgentId)
-> SdaResult<Option<Profile>>
Retrieve the associated public profile.
fn create_encryption_key(&self,
caller: &Agent,
key: &SignedEncryptionKey)
-> SdaResult<()>
caller: &Agent,
key: &SignedEncryptionKey)
-> SdaResult<()>
Register new encryption key for agent.
fn get_encryption_key(&self,
_caller: &Agent,
key: &EncryptionKeyId)
-> SdaResult<Option<SignedEncryptionKey>>
_caller: &Agent,
key: &EncryptionKeyId)
-> SdaResult<Option<SignedEncryptionKey>>
Retrieve agent encryption key.
impl SdaAggregationService for SdaServerService
[src]
fn list_aggregations(&self,
_caller: &Agent,
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaResult<Vec<AggregationId>>
_caller: &Agent,
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaResult<Vec<AggregationId>>
Search for aggregations optionally filtering by title substring and/or recipient. Read more
fn get_aggregation(&self,
_caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Aggregation>>
_caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Aggregation>>
Retrieve an aggregation and its description.
fn get_committee(&self,
_caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Committee>>
_caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Committee>>
Retrieve the associated committee.
impl SdaRecipientService for SdaServerService
[src]
fn create_aggregation(&self,
caller: &Agent,
aggregation: &Aggregation)
-> SdaResult<()>
caller: &Agent,
aggregation: &Aggregation)
-> SdaResult<()>
Create a new aggregation on the service (without any associated result). If successful, the original id has been replaced by the returned id. Read more
fn delete_aggregation(&self,
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<()>
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<()>
Delete all information (including results) regarding an aggregation.
fn suggest_committee(&self,
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Vec<ClerkCandidate>>
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Vec<ClerkCandidate>>
Propose suitable members for a committee, taking into account the aggregation constraints.
fn create_committee(&self,
caller: &Agent,
committee: &Committee)
-> SdaResult<()>
caller: &Agent,
committee: &Committee)
-> SdaResult<()>
Set the committee for an aggregation.
fn get_aggregation_status(&self,
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<AggregationStatus>>
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<AggregationStatus>>
Poll status of an aggregation.
fn create_snapshot(&self, caller: &Agent, snapshot: &Snapshot) -> SdaResult<()>
Create a snapshot for an aggregation.
fn get_snapshot_result(&self,
caller: &Agent,
aggregation: &AggregationId,
snapshot: &SnapshotId)
-> SdaResult<Option<SnapshotResult>>
caller: &Agent,
aggregation: &AggregationId,
snapshot: &SnapshotId)
-> SdaResult<Option<SnapshotResult>>
Retrieve results of an aggregation.
impl SdaParticipationService for SdaServerService
[src]
fn create_participation(&self,
caller: &Agent,
participation: &Participation)
-> SdaResult<()>
caller: &Agent,
participation: &Participation)
-> SdaResult<()>
Provide user input to an aggregation.
impl SdaClerkingService for SdaServerService
[src]
fn get_clerking_job(&self,
caller: &Agent,
clerk: &AgentId)
-> SdaResult<Option<ClerkingJob>>
caller: &Agent,
clerk: &AgentId)
-> SdaResult<Option<ClerkingJob>>
Pull any job waiting to be performed by the speficied clerk.
fn create_clerking_result(&self,
caller: &Agent,
result: &ClerkingResult)
-> SdaResult<()>
caller: &Agent,
result: &ClerkingResult)
-> SdaResult<()>
Push the result of a finished job.