Struct exonum_configuration::Vote []

pub struct Vote { /* fields omitted */ }

Vote for the new configuration.

Notes

The stored version of the transaction has a special variant corresponding to absence of a vote. See MaybeVote for details.

See ErrorCode for the description of error codes emitted by the execute() method.

Methods

impl Vote

Creates message and signs it.

Creates message and appends existing signature.

Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).

Sender of the transaction.

Should be one of validators as per the active configuration.

Hash of the configuration that this vote is for.

See crate docs for more details on how the hash is calculated.

Trait Implementations

impl Clone for Vote

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Vote

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl ServiceMessage for Vote

SERVICE_ID: u16 = super::SERVICE_ID

ID of the service this message belongs to.

MESSAGE_ID: u16 = 0 + 1

ID of the message itself. Should be unique within a service. Read more

impl Message for Vote

Converts the raw message into the specific one.

Returns raw message.

[src]

Verifies the message using given public key.

impl<'a> SegmentField<'a> for Vote

size of item fixed part that this Field collect.

count of items in collection

extend buffer with this collection

create collection from buffer

check collection data

impl AsRef<RawMessage> for Vote

Performs the conversion.

impl FromHex for Vote

Creates an instance of type Self from the given hex string, or fails with a custom error type. Read more

impl StorageValue for Vote

Important traits for Vec<u8>

Serialize a value into a vector of bytes.

Deserialize a value from bytes.

impl Debug for Vote

Formats the value using the given formatter. Read more

impl ExonumJson for Vote

write deserialized field in buffer on place.

serialize field as json::Value

impl ExonumJsonDeserialize for Vote

deserialize json value.

impl<'de> Deserialize<'de> for Vote

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Vote

Serialize this value into the given Serde serializer. Read more

impl Transaction for Vote
[src]

[src]

Verifies the internal consistency of the transaction. verify should usually include checking the message signature (via [verify_signature]) and, possibly, other internal constraints. verify has no access to the blockchain state; checks involving the blockchains state must be preformed in execute. Read more

[src]

Receives a fork of the current blockchain state and can modify it depending on the contents of the transaction. Read more

Auto Trait Implementations

impl Send for Vote

impl Sync for Vote