[−][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]
pub fn new() -> Header
[src]
pub fn get_version(&self) -> &Version
[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_chain_id(&self) -> &str
[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_height(&self) -> i64
[src]
pub fn clear_height(&mut self)
[src]
pub fn set_height(&mut self, v: i64)
[src]
pub fn get_time(&self) -> &Timestamp
[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_num_txs(&self) -> i64
[src]
pub fn clear_num_txs(&mut self)
[src]
pub fn set_num_txs(&mut self, v: i64)
[src]
pub fn get_total_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_last_block_id(&self) -> &BlockID
[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_commit_hash(&self) -> &[u8]
[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_data_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_validators_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_next_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_consensus_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_app_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_last_results_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_evidence_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_proposer_address(&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]
Trait Implementations
impl Clone for Header
[src]
impl Default for Header
[src]
impl<'a> Default for &'a Header
[src]
impl PartialEq<Header> for Header
[src]
impl Debug for Header
[src]
impl StructuralPartialEq for Header
[src]
impl Message for Header
[src]
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(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
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]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]
fn type_id(&self) -> TypeId
[src]
impl Clear for Header
[src]
impl ProtobufValue for Header
[src]
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
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
impl RefUnwindSafe for Header
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,