[−][src]Struct abci::Header
Fields
version: SingularPtrField<Version>
chain_id: String
height: i64
time: SingularPtrField<Timestamp>
num_txs: i64
total_txs: i64
last_block_id: SingularPtrField<BlockID>
last_commit_hash: Vec<u8>
data_hash: Vec<u8>
validators_hash: Vec<u8>
next_validators_hash: Vec<u8>
consensus_hash: Vec<u8>
app_hash: Vec<u8>
last_results_hash: Vec<u8>
evidence_hash: Vec<u8>
proposer_address: Vec<u8>
unknown_fields: UnknownFields
cached_size: CachedSize
Methods
impl Header
[src]
impl Header
pub fn new() -> Header | [src] |
pub fn clear_version(&mut self) | [src] |
pub fn has_version(&self) -> bool | [src] |
pub fn set_version(&mut self, v: Version) | [src] |
pub fn mut_version(&mut self) -> &mut Version | [src] |
pub fn take_version(&mut self) -> Version | [src] |
pub fn get_version(&self) -> &Version | [src] |
pub fn clear_chain_id(&mut self) | [src] |
pub fn set_chain_id(&mut self, v: String) | [src] |
pub fn mut_chain_id(&mut self) -> &mut String | [src] |
pub fn take_chain_id(&mut self) -> String | [src] |
pub fn get_chain_id(&self) -> &str | [src] |
pub fn clear_height(&mut self) | [src] |
pub fn set_height(&mut self, v: i64) | [src] |
pub fn get_height(&self) -> i64 | [src] |
pub fn clear_time(&mut self) | [src] |
pub fn has_time(&self) -> bool | [src] |
pub fn set_time(&mut self, v: Timestamp) | [src] |
pub fn mut_time(&mut self) -> &mut Timestamp | [src] |
pub fn take_time(&mut self) -> Timestamp | [src] |
pub fn get_time(&self) -> &Timestamp | [src] |
pub fn clear_num_txs(&mut self) | [src] |
pub fn set_num_txs(&mut self, v: i64) | [src] |
pub fn get_num_txs(&self) -> i64 | [src] |
pub fn clear_total_txs(&mut self) | [src] |
pub fn set_total_txs(&mut self, v: i64) | [src] |
pub fn get_total_txs(&self) -> i64 | [src] |
pub fn clear_last_block_id(&mut self) | [src] |
pub fn has_last_block_id(&self) -> bool | [src] |
pub fn set_last_block_id(&mut self, v: BlockID) | [src] |
pub fn mut_last_block_id(&mut self) -> &mut BlockID | [src] |
pub fn take_last_block_id(&mut self) -> BlockID | [src] |
pub fn get_last_block_id(&self) -> &BlockID | [src] |
pub fn clear_last_commit_hash(&mut self) | [src] |
pub fn set_last_commit_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_last_commit_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_last_commit_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_last_commit_hash(&self) -> &[u8] | [src] |
pub fn clear_data_hash(&mut self) | [src] |
pub fn set_data_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_data_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_data_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_data_hash(&self) -> &[u8] | [src] |
pub fn clear_validators_hash(&mut self) | [src] |
pub fn set_validators_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_validators_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_validators_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_validators_hash(&self) -> &[u8] | [src] |
pub fn clear_next_validators_hash(&mut self) | [src] |
pub fn set_next_validators_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_next_validators_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_next_validators_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_next_validators_hash(&self) -> &[u8] | [src] |
pub fn clear_consensus_hash(&mut self) | [src] |
pub fn set_consensus_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_consensus_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_consensus_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_consensus_hash(&self) -> &[u8] | [src] |
pub fn clear_app_hash(&mut self) | [src] |
pub fn set_app_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_app_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_app_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_app_hash(&self) -> &[u8] | [src] |
pub fn clear_last_results_hash(&mut self) | [src] |
pub fn set_last_results_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_last_results_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_last_results_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_last_results_hash(&self) -> &[u8] | [src] |
pub fn clear_evidence_hash(&mut self) | [src] |
pub fn set_evidence_hash(&mut self, v: Vec<u8>) | [src] |
pub fn mut_evidence_hash(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_evidence_hash(&mut self) -> Vec<u8> | [src] |
pub fn get_evidence_hash(&self) -> &[u8] | [src] |
pub fn clear_proposer_address(&mut self) | [src] |
pub fn set_proposer_address(&mut self, v: Vec<u8>) | [src] |
pub fn mut_proposer_address(&mut self) -> &mut Vec<u8> | [src] |
pub fn take_proposer_address(&mut self) -> Vec<u8> | [src] |
pub fn get_proposer_address(&self) -> &[u8] | [src] |
Trait Implementations
impl Default for Header
[src]
impl Default for Header
impl PartialEq<Header> for Header
[src]
impl PartialEq<Header> for Header
impl Clone for Header
[src]
impl Clone for Header
fn clone(&self) -> Header | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Header
[src]
impl Debug for Header
impl Message for Header
[src]
impl Message for Header
fn is_initialized(&self) -> bool | [src] |
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()> | [src] |
fn compute_size(&self) -> u32 | [src] |
fn write_to_with_cached_sizes( | [src] |
fn get_cached_size(&self) -> u32 | [src] |
fn get_unknown_fields(&self) -> &UnknownFields | [src] |
fn mut_unknown_fields(&mut self) -> &mut UnknownFields | [src] |
fn as_any(&self) -> &dyn Any | [src] |
fn as_any_mut(&mut self) -> &mut dyn Any | [src] |
fn into_any(self: Box<Self>) -> Box<dyn Any> | [src] |
fn descriptor(&self) -> &'static MessageDescriptor | [src] |
fn new() -> Header | [src] |
fn descriptor_static() -> &'static MessageDescriptor | [src] |
fn default_instance() -> &'static Header | [src] |
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError> | [src] |
Write the message to the stream. Read more
fn write_length_delimited_to( | [src] |
Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec( | [src] |
Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError> | [src] |
Update this message object with fields read from given stream.
fn check_initialized(&self) -> Result<(), ProtobufError> | [src] |
Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError> | [src] |
Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError> | [src] |
Write the message to bytes vec.
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError> | [src] |
Write the message to bytes vec.
fn write_length_delimited_to_writer( | [src] |
Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError> | [src] |
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
fn type_id(&self) -> TypeId | [src] |
Get type id for downcasting.
impl Clear for Header
[src]
impl Clear for Header
impl ProtobufValue for Header
[src]
impl ProtobufValue for Header
fn as_ref(&self) -> ProtobufValueRef | [src] |
fn as_any(&self) -> &(dyn Any + 'static) | [src] |
fn is_non_zero(&self) -> bool | [src] |
fn as_ref_copy(&self) -> ProtobufValueRef<'static> | [src] |
Auto Trait Implementations
Blanket Implementations
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] |