Enum exonum::messages::RequestMessage
[−]
[src]
pub enum RequestMessage { Propose(ProposeRequest), Transactions(TransactionsRequest), Prevotes(PrevotesRequest), Peers(PeersRequest), Block(BlockRequest), }
A request for the some data.
Variants
Propose(ProposeRequest)
Propose request.
Transactions(TransactionsRequest)
Transactions request.
Prevotes(PrevotesRequest)
Prevotes request.
Peers(PeersRequest)
Peers request.
Block(BlockRequest)
Block request.
Methods
impl RequestMessage
[src]
fn from(&self) -> &PublicKey
[src]
Returns public key of the message sender.
fn to(&self) -> &PublicKey
[src]
Returns public key of the message recipient.
fn verify(&self, public_key: &PublicKey) -> bool
[src]
Verifies the message signature with given public key.
fn raw(&self) -> &RawMessage
[src]
Returns raw message.
Trait Implementations
impl Clone for RequestMessage
[src]
fn clone(&self) -> RequestMessage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RequestMessage
[src]
fn eq(&self, __arg_0: &RequestMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RequestMessage) -> bool
[src]
This method tests for !=
.