pub struct TendermintHeader(/* private fields */);
Implementations§
Source§impl TendermintHeader
impl TendermintHeader
pub fn set_trusted_height(&mut self, trusted_height: Height)
pub fn set_trusted_next_validators_set( &mut self, trusted_next_validator_set: ValidatorSet, )
pub fn header(&self) -> &TmHeader
Trait Implementations§
Source§impl Clone for TendermintHeader
impl Clone for TendermintHeader
Source§fn clone(&self) -> TendermintHeader
fn clone(&self) -> TendermintHeader
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 TendermintHeader
impl Debug for TendermintHeader
Source§impl From<TendermintHeader> for Any
impl From<TendermintHeader> for Any
Source§fn from(value: TendermintHeader) -> Self
fn from(value: TendermintHeader) -> Self
Converts to this type from the input type.
Source§impl From<TendermintHeader> for ConsensusState
impl From<TendermintHeader> for ConsensusState
Source§fn from(header: TendermintHeader) -> Self
fn from(header: TendermintHeader) -> Self
Converts to this type from the input type.
Source§impl From<TendermintHeader> for Header
impl From<TendermintHeader> for Header
Source§fn from(header: TendermintHeader) -> Self
fn from(header: TendermintHeader) -> Self
Converts to this type from the input type.
Source§impl From<TmLightBlock> for TendermintHeader
impl From<TmLightBlock> for TendermintHeader
Source§fn from(block: TmLightBlock) -> Self
fn from(block: TmLightBlock) -> Self
Converts to this type from the input type.
Source§impl TestHeader for TendermintHeader
impl TestHeader for TendermintHeader
Source§type ConsensusState = ConsensusState
type ConsensusState = ConsensusState
The type of consensus state can be extracted from the header.
Source§fn into_consensus_state(self) -> Self::ConsensusState
fn into_consensus_state(self) -> Self::ConsensusState
Extract the consensus state from the header.
Auto Trait Implementations§
impl Freeze for TendermintHeader
impl RefUnwindSafe for TendermintHeader
impl Send for TendermintHeader
impl Sync for TendermintHeader
impl Unpin for TendermintHeader
impl UnwindSafe for TendermintHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request