[−][src]Struct exonum::messages::PrevotesRequest
Request for pre-votes.
Validation
The message is ignored if its height
is not equal to the node's
height.
Processing
The requested pre-votes are sent to the recipient.
Generation
This message can be sent during Prevote
and Precommit
handling.
Methods
impl PrevotesRequest
[src]
impl PrevotesRequest
pub fn new( | [src] |
Creates message and signs it.
pub fn new_with_signature( | [src] |
Creates message and appends existing signature.
pub fn to_hex(&self) -> String | [src] |
Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).
pub fn from(&self) -> &PublicKey | [src] |
The sender's public key.
pub fn to(&self) -> &PublicKey | [src] |
Public key of the recipient.
pub fn height(&self) -> Height | [src] |
The height to which the message is related.
pub fn round(&self) -> Round | [src] |
The round to which the message is related.
pub fn propose_hash(&self) -> &Hash | [src] |
Hash of the Propose
.
pub fn validators(&self) -> BitVec | [src] |
The list of validators that send pre-votes.
Trait Implementations
impl ExonumJson for PrevotesRequest
[src]
impl ExonumJson for PrevotesRequest
fn deserialize_field<B>( | [src] |
fn serialize_field(&self) -> Result<Value, Box<dyn Error + Send + Sync>> | [src] |
impl ExonumJsonDeserialize for PrevotesRequest
[src]
impl ExonumJsonDeserialize for PrevotesRequest
impl<'a> SegmentField<'a> for PrevotesRequest
[src]
impl<'a> SegmentField<'a> for PrevotesRequest
fn item_size() -> Offset | [src] |
fn count(&self) -> Offset | [src] |
fn extend_buffer(&self, buffer: &mut Vec<u8>) | [src] |
unsafe fn from_buffer(buffer: &'a [u8], from: Offset, count: Offset) -> Self | [src] |
fn check_data( | [src] |
impl ServiceMessage for PrevotesRequest
[src]
impl ServiceMessage for PrevotesRequest
const SERVICE_ID: u16
[src]
const MESSAGE_ID: u16
[src]
impl Message for PrevotesRequest
[src]
impl Message for PrevotesRequest
fn from_raw(raw: RawMessage) -> Result<PrevotesRequest, Error> | [src] |
fn raw(&self) -> &RawMessage | [src] |
fn verify_signature(&self, pub_key: &PublicKey) -> bool | [src] |
Verifies the message using given public key.
impl StorageValue for PrevotesRequest
[src]
impl StorageValue for PrevotesRequest
fn into_bytes(self) -> Vec<u8> | [src] |
fn from_bytes(value: Cow<[u8]>) -> Self | [src] |
impl PartialEq<PrevotesRequest> for PrevotesRequest
[src]
impl PartialEq<PrevotesRequest> for PrevotesRequest
fn eq(&self, other: &PrevotesRequest) -> bool | [src] |
fn ne(&self, other: &PrevotesRequest) -> bool | [src] |
impl AsRef<RawMessage> for PrevotesRequest
[src]
impl AsRef<RawMessage> for PrevotesRequest
fn as_ref(&self) -> &RawMessage | [src] |
impl Clone for PrevotesRequest
[src]
impl Clone for PrevotesRequest
fn clone(&self) -> PrevotesRequest | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for PrevotesRequest
[src]
impl Debug for PrevotesRequest
impl<'de> Deserialize<'de> for PrevotesRequest
[src]
impl<'de> Deserialize<'de> for PrevotesRequest
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where | [src] |
impl Serialize for PrevotesRequest
[src]
impl Serialize for PrevotesRequest
impl FromHex for PrevotesRequest
[src]
impl FromHex for PrevotesRequest
Auto Trait Implementations
impl Send for PrevotesRequest
impl Send for PrevotesRequest
impl Sync for PrevotesRequest
impl Sync for PrevotesRequest
Blanket Implementations
impl<T> CryptoHash for T where
T: Message,
[src]
impl<T> CryptoHash for T where
T: Message,
impl<T> SerializeContent for T where
T: Serialize,
[src]
impl<T> SerializeContent for T where
T: Serialize,
fn serialize_content<S>( | [src] |
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> Erased for T
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self