[−][src]Struct exonum_configuration::Schema
Database schema used by the configuration service.
Methods
impl<T> Schema<T> where
T: IndexAccess,
[src]
T: IndexAccess,
pub fn new(access: T) -> Schema<T>
[src]
Creates a new schema.
pub fn propose_data_by_config_hash(&self) -> ProofMapIndex<T, Hash, ProposeData>
[src]
Returns propose information indexed by the hash of the configuration corresponding to a proposal.
Consult the crate-level docs for details how hashes of the configuration are calculated.
pub fn config_hash_by_ordinal(&self) -> ProofListIndex<T, Hash>
[src]
Returns a table of hashes of proposed configurations in the commit order.
pub fn votes_by_config_hash(
&self,
config_hash: &Hash
) -> ProofListIndex<T, MaybeVote>
[src]
&self,
config_hash: &Hash
) -> ProofListIndex<T, MaybeVote>
Returns a table of votes of validators for a particular proposal, referenced by its configuration hash.
pub fn propose(&self, cfg_hash: &Hash) -> Option<Propose>
[src]
Returns a Propose
transaction with a particular configuration hash.
pub fn votes(&self, cfg_hash: &Hash) -> Vec<Option<VotingDecision>>
[src]
Returns a list of votes for the proposal corresponding to the given configuration hash.
pub fn state_hash(&self) -> Vec<Hash>
[src]
Returns state hash values used by the configuration service.
Trait Implementations
Auto Trait Implementations
impl<T> Sync for Schema<T> where
T: Sync,
T: Sync,
impl<T> Send for Schema<T> where
T: Send,
T: Send,
impl<T> Unpin for Schema<T> where
T: Unpin,
T: Unpin,
impl<T> RefUnwindSafe for Schema<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for Schema<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,