Struct cryptoballot::MemStore [−][src]
pub struct MemStore { /* fields omitted */ }
Expand description
A simple store that uses an in-memory BTreeMap
Implementations
impl MemStore
[src]
impl MemStore
[src]pub fn set(&mut self, tx: SignedTransaction)
[src]
Trait Implementations
impl From<Vec<SignedTransaction, Global>> for MemStore
[src]
impl From<Vec<SignedTransaction, Global>> for MemStore
[src]fn from(item: Vec<SignedTransaction>) -> Self
[src]
fn from(item: Vec<SignedTransaction>) -> Self
[src]Performs the conversion.
impl Store for MemStore
[src]
impl Store for MemStore
[src]fn get_transaction(&self, id: Identifier) -> Option<SignedTransaction>
[src]
fn get_transaction(&self, id: Identifier) -> Option<SignedTransaction>
[src]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>
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]
fn get_election(
&self,
id: Identifier
) -> Result<Signed<ElectionTransaction>, TransactionNotFound>
[src]Get an election transaction
fn get_keygen_public_key(
&self,
id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound>
[src]
fn get_keygen_public_key(
&self,
id: Identifier
) -> Result<Signed<KeyGenPublicKeyTransaction>, TransactionNotFound>
[src]Get a public_key transaction
fn get_vote(
&self,
id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound>
[src]
fn get_vote(
&self,
id: Identifier
) -> Result<Signed<VoteTransaction>, TransactionNotFound>
[src]Get an Vote transaction
fn get_mix(
&self,
id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound>
[src]
fn get_mix(
&self,
id: Identifier
) -> Result<Signed<MixTransaction>, TransactionNotFound>
[src]Get an Mix transaction
fn get_partial_decryption(
&self,
id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound>
[src]
fn get_partial_decryption(
&self,
id: Identifier
) -> Result<Signed<PartialDecryptionTransaction>, TransactionNotFound>
[src]Get a PartialDecryption transaction
fn get_decryption(
&self,
id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound>
[src]
fn get_decryption(
&self,
id: Identifier
) -> Result<Signed<DecryptionTransaction>, TransactionNotFound>
[src]Get a Decryption transaction
Auto Trait Implementations
impl RefUnwindSafe for MemStore
impl Send for MemStore
impl Sync for MemStore
impl Unpin for MemStore
impl UnwindSafe for MemStore
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
[src]
impl<T> Pointable for T
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more