Struct exonum::messages::PeersRequest [] [src]

pub struct PeersRequest { /* fields omitted */ }

Request connected peers from a node.

Validation

Request is considered valid if the sender of the message on the network level corresponds to the from field.

Processing

Peer Connect messages are sent to the recipient.

Generation

PeersRequest message is sent regularly with the timeout controlled by blockchain::ConsensusConfig::peers_timeout.

Methods

impl PeersRequest
[src]

[src]

Creates messsage and sign it.

[src]

Creates message and appends existing signature.

[src]

Returns message_id useable for matching.

[src]

Returns service_id useable for matching.

[src]

The sender's public key.

[src]

Public key of the recipient.

Trait Implementations

impl Clone for PeersRequest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PeersRequest
[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 Message for PeersRequest
[src]

[src]

Returns raw message.

[src]

Returns hash of the RawMessage.

[src]

Verifies the message using given public key.

impl<'a> SegmentField<'a> for PeersRequest
[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 FromRaw for PeersRequest
[src]

[src]

Converts the raw message into the specific one.

impl StorageValue for PeersRequest
[src]

[src]

Returns a hash of the value. Read more

[src]

Serialize a value into a vector of bytes.

[src]

Deserialize a value from bytes.

impl Debug for PeersRequest
[src]

[src]

Formats the value using the given formatter.

impl ExonumJson for PeersRequest
[src]

[src]

write deserialized field in buffer on place.

[src]

serialize field as json::Value

impl ExonumJsonDeserialize for PeersRequest
[src]

[src]

deserialize json value.

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PeersRequest
[src]

[src]

Serialize this value into the given Serde serializer. Read more