Struct tendermint_proto::consensus::VoteSetBits
source · [−]pub struct VoteSetBits {
pub height: i64,
pub round: i32,
pub type: i32,
pub block_id: Option<BlockId>,
pub votes: Option<BitArray>,
}
Expand description
VoteSetBits is sent to communicate the bit-array of votes seen for the BlockID.
Fields
height: i64
round: i32
type: i32
block_id: Option<BlockId>
votes: Option<BitArray>
Implementations
sourceimpl VoteSetBits
impl VoteSetBits
sourcepub fn type(&self) -> SignedMsgType
pub fn type(&self) -> SignedMsgType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: SignedMsgType)
pub fn set_type(&mut self, value: SignedMsgType)
Sets type
to the provided enum value.
Trait Implementations
sourceimpl Clone for VoteSetBits
impl Clone for VoteSetBits
sourcefn clone(&self) -> VoteSetBits
fn clone(&self) -> VoteSetBits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VoteSetBits
impl Debug for VoteSetBits
sourceimpl Default for VoteSetBits
impl Default for VoteSetBits
sourceimpl Message for VoteSetBits
impl Message for VoteSetBits
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
. Read moresourceimpl PartialEq<VoteSetBits> for VoteSetBits
impl PartialEq<VoteSetBits> for VoteSetBits
sourcefn eq(&self, other: &VoteSetBits) -> bool
fn eq(&self, other: &VoteSetBits) -> bool
impl StructuralPartialEq for VoteSetBits
Auto Trait Implementations
impl RefUnwindSafe for VoteSetBits
impl Send for VoteSetBits
impl Sync for VoteSetBits
impl Unpin for VoteSetBits
impl UnwindSafe for VoteSetBits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more