Trait cryptoballot::Store [−][src]
pub trait Store { fn get_transaction(&self, id: Identifier) -> Option<SignedTransaction>; fn range(
&self,
start: Identifier,
end_inclusive: Identifier
) -> Vec<SignedTransaction>; fn get_multiple(
&self,
election_id: Identifier,
tx_type: TransactionType
) -> Vec<SignedTransaction> { ... } fn get_election(
&self,
id: Identifier
) -> Result<Signed<ElectionTransaction>, TransactionNotFound> { ... } fn get_keygen_public_key(
&self,
id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound> { ... } fn get_vote(
&self,
id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound> { ... } fn get_mix(
&self,
id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound> { ... } fn get_partial_decryption(
&self,
id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound> { ... } fn get_decryption(
&self,
id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound> { ... } }
Expand description
A transaction store
Required methods
fn get_transaction(&self, id: Identifier) -> Option<SignedTransaction>
[src]
Expand description
Get a transaction of an unknown type
fn range(
&self,
start: Identifier,
end_inclusive: Identifier
) -> Vec<SignedTransaction>
[src]
&self,
start: Identifier,
end_inclusive: Identifier
) -> Vec<SignedTransaction>
Provided methods
fn get_multiple(
&self,
election_id: Identifier,
tx_type: TransactionType
) -> Vec<SignedTransaction>
[src]
&self,
election_id: Identifier,
tx_type: TransactionType
) -> Vec<SignedTransaction>
fn get_election(
&self,
id: Identifier
) -> Result<Signed<ElectionTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<ElectionTransaction>, TransactionNotFound>
Expand description
Get an election transaction
fn get_keygen_public_key(
&self,
id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound>
Expand description
Get a public_key transaction
fn get_vote(
&self,
id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound>
Expand description
Get an Vote transaction
fn get_mix(
&self,
id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound>
Expand description
Get an Mix transaction
fn get_partial_decryption(
&self,
id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound>
Expand description
Get a PartialDecryption transaction
fn get_decryption(
&self,
id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound>
[src]
&self,
id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound>
Expand description
Get a Decryption transaction
Implementors
impl Store for MemStore
[src]
impl Store for MemStore
[src]fn get_transaction(&self, id: Identifier) -> Option<SignedTransaction>
[src]
fn range(
&self,
start: Identifier,
end_inclusive: Identifier
) -> Vec<SignedTransaction>
[src]
&self,
start: Identifier,
end_inclusive: Identifier
) -> Vec<SignedTransaction>