pub enum BlockSignatureInfo {
Flag(BlockIdFlag),
LegacySigned,
}
Expand description
Information on how the validator voted for a block.
Variants§
Flag(BlockIdFlag)
Full information available, as determined by the BlockIdFlag
value.
In CometBFT versions before 0.38, both Commit
and Nil
values
are encoded as the true value of the signed_last_block
field,
losing information on whether the vote was for the block or nil.
LegacySigned
In the message encoded in a CometBFT version before 0.38,
the signed_last_block
field has the value of true.
This variant should not be used in CometBFT 0.38 or later and will result in the “undefined” encoding in protobuf.
Implementations§
Trait Implementations§
Source§impl Clone for BlockSignatureInfo
impl Clone for BlockSignatureInfo
Source§fn clone(&self) -> BlockSignatureInfo
fn clone(&self) -> BlockSignatureInfo
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 BlockSignatureInfo
impl Debug for BlockSignatureInfo
Source§impl From<BlockSignatureInfo> for BlockIdFlag
impl From<BlockSignatureInfo> for BlockIdFlag
Source§fn from(value: BlockSignatureInfo) -> Self
fn from(value: BlockSignatureInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockSignatureInfo
impl PartialEq for BlockSignatureInfo
impl Copy for BlockSignatureInfo
impl Eq for BlockSignatureInfo
impl StructuralPartialEq for BlockSignatureInfo
Auto Trait Implementations§
impl Freeze for BlockSignatureInfo
impl RefUnwindSafe for BlockSignatureInfo
impl Send for BlockSignatureInfo
impl Sync for BlockSignatureInfo
impl Unpin for BlockSignatureInfo
impl UnwindSafe for BlockSignatureInfo
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