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]

Loading content...

Provided methods

fn get_multiple(
    &self,
    election_id: Identifier,
    tx_type: TransactionType
) -> Vec<SignedTransaction>
[src]

fn get_election(
    &self,
    id: Identifier
) -> Result<Signed<ElectionTransaction>, TransactionNotFound>
[src]

Expand description

Get an election transaction

fn get_keygen_public_key(
    &self,
    id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound>
[src]

Expand description

Get a public_key transaction

fn get_vote(
    &self,
    id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound>
[src]

Expand description

Get an Vote transaction

fn get_mix(
    &self,
    id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound>
[src]

Expand description

Get an Mix transaction

fn get_partial_decryption(
    &self,
    id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound>
[src]

Expand description

Get a PartialDecryption transaction

fn get_decryption(
    &self,
    id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound>
[src]

Expand description

Get a Decryption transaction

Loading content...

Implementors

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]

Loading content...