pub struct ExtendedVoteInfo {
    pub validator: Validator,
    pub sig_info: BlockSignatureInfo,
    pub vote_extension: Bytes,
    pub extension_signature: Option<Signature>,
}Expand description
Information about a whether a validator signed the last block, together with vote extensions.
Fields§
§validator: ValidatorIdentifies the validator.
sig_info: BlockSignatureInfoWhether or not the validator signed the last block.
vote_extension: BytesNon-deterministic extension provided by the sending validator’s application.
This field is only used since CometBFT 0.38. It will be ignored when encoding into earlier protocol versions.
extension_signature: Option<Signature>Signature for the vote extension.
This field has been added in CometBFT 0.38 and will be ignored when encoding into earlier protocol versions.
Trait Implementations§
Source§impl Clone for ExtendedVoteInfo
 
impl Clone for ExtendedVoteInfo
Source§fn clone(&self) -> ExtendedVoteInfo
 
fn clone(&self) -> ExtendedVoteInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ExtendedVoteInfo
 
impl Debug for ExtendedVoteInfo
Source§impl From<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl From<ExtendedVoteInfo> for ExtendedVoteInfo
Source§fn from(vi: ExtendedVoteInfo) -> Self
 
fn from(vi: ExtendedVoteInfo) -> Self
Converts to this type from the input type.
Source§impl From<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl From<ExtendedVoteInfo> for ExtendedVoteInfo
Source§fn from(vi: ExtendedVoteInfo) -> Self
 
fn from(vi: ExtendedVoteInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtendedVoteInfo
 
impl PartialEq for ExtendedVoteInfo
Source§impl Protobuf<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl Protobuf<ExtendedVoteInfo> for ExtendedVoteInfo
§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
 
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
Encode into a buffer in Protobuf format. Read more
§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
 
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
§fn decode<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
 
fn decode<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
 
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
§fn encoded_len(self) -> usize
 
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
§fn encode_vec(self) -> Vec<u8> ⓘ
 
fn encode_vec(self) -> Vec<u8> ⓘ
Encodes into a Protobuf-encoded 
Vec<u8>.§fn decode_vec(v: &[u8]) -> Result<Self, Error>
 
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent).§fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
 
fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
Encode with a length-delimiter to a 
Vec<u8> Protobuf-encoded message.§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
 
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a 
Vec<u8> or equivalent.Source§impl Protobuf<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl Protobuf<ExtendedVoteInfo> for ExtendedVoteInfo
§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
 
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
Encode into a buffer in Protobuf format. Read more
§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
 
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
    B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
§fn decode<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
 
fn decode<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
 
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
    B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
§fn encoded_len(self) -> usize
 
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
§fn encode_vec(self) -> Vec<u8> ⓘ
 
fn encode_vec(self) -> Vec<u8> ⓘ
Encodes into a Protobuf-encoded 
Vec<u8>.§fn decode_vec(v: &[u8]) -> Result<Self, Error>
 
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent).§fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
 
fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
Encode with a length-delimiter to a 
Vec<u8> Protobuf-encoded message.§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
 
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a 
Vec<u8> or equivalent.Source§impl TryFrom<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl TryFrom<ExtendedVoteInfo> for ExtendedVoteInfo
Source§impl TryFrom<ExtendedVoteInfo> for ExtendedVoteInfo
 
impl TryFrom<ExtendedVoteInfo> for ExtendedVoteInfo
impl Eq for ExtendedVoteInfo
impl StructuralPartialEq for ExtendedVoteInfo
Auto Trait Implementations§
impl !Freeze for ExtendedVoteInfo
impl RefUnwindSafe for ExtendedVoteInfo
impl Send for ExtendedVoteInfo
impl Sync for ExtendedVoteInfo
impl Unpin for ExtendedVoteInfo
impl UnwindSafe for ExtendedVoteInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more