Struct exonum::messages::Status [] [src]

pub struct Status { /* fields omitted */ }

Current node status.

Validation

The message is ignored if its signature is incorrect or its height is lower than a node's height.

Processing

If the message's height number is bigger than a node's one, then BlockRequest with current node's height is sent in reply.

Generation

Status message is broadcast regularly with the timeout controlled by blockchain::ConsensusConfig::status_timeout. Also, it is broadcast after accepting a new block.

Methods

impl Status
[src]

[src]

Creates message and signs it.

[src]

Creates message and appends existing signature.

[src]

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

[src]

The sender's public key.

[src]

The height to which the message is related.

[src]

Hash of the last committed block.

Trait Implementations

impl Clone for Status
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Status
[src]

[src]

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

[src]

This method tests for !=.

impl ServiceMessage for Status
[src]

SERVICE_ID: u16 = CONSENSUS

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 Status
[src]

[src]

Converts the raw message into the specific one.

[src]

Returns raw message.

[src]

Verifies the message using given public key.

impl<'a> SegmentField<'a> for Status
[src]

[src]

size of item fixed part that this Field collect.

[src]

count of items in collection

[src]

extend buffer with this collection

[src]

create collection from buffer

[src]

check collection data

impl AsRef<RawMessage> for Status
[src]

[src]

Performs the conversion.

impl FromHex for Status
[src]

[src]

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

impl StorageValue for Status
[src]

Important traits for Vec<u8>
[src]

Serialize a value into a vector of bytes.

[src]

Deserialize a value from bytes.

impl Debug for Status
[src]

[src]

Formats the value using the given formatter. Read more

impl ExonumJson for Status
[src]

[src]

write deserialized field in buffer on place.

[src]

serialize field as json::Value

impl ExonumJsonDeserialize for Status
[src]

[src]

deserialize json value.

impl<'de> Deserialize<'de> for Status
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Status
[src]

[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Status

impl Sync for Status