pub struct Proofs { /* private fields */ }Expand description
Structure comprising proofs in a message. Proofs are typically present in messages for handshake protocols, e.g., ICS3 connection (open) handshake or ICS4 channel (open and close) handshake, as well as for ICS4 packets, timeouts, and acknowledgements.
Implementations§
Source§impl Proofs
impl Proofs
pub fn new( object_proof: CommitmentProofBytes, client_proof: Option<CommitmentProofBytes>, consensus_proof: Option<ConsensusProof>, host_consensus_state_proof: Option<CommitmentProofBytes>, other_proof: Option<CommitmentProofBytes>, height: Height, ) -> Result<Self, ProofError>
Sourcepub fn consensus_proof(&self) -> Option<&ConsensusProof>
pub fn consensus_proof(&self) -> Option<&ConsensusProof>
Getter for the consensus_proof field of this proof. Intuitively, this is a proof that a client on the source chain stores a consensus state for the destination chain.
Sourcepub fn host_consensus_state_proof(&self) -> Option<&CommitmentProofBytes>
pub fn host_consensus_state_proof(&self) -> Option<&CommitmentProofBytes>
Getter for the host_consensus_state_proof field of this proof. This is an optional proof data for host state machines that are unable to introspect their own consensus state.
Sourcepub fn height(&self) -> Height
pub fn height(&self) -> Height
Getter for the height field of this proof (i.e., the consensus height where this proof was created).
Sourcepub fn object_proof(&self) -> &CommitmentProofBytes
pub fn object_proof(&self) -> &CommitmentProofBytes
Getter for the object-specific proof (e.g., proof for connection state or channel state).
Sourcepub fn client_proof(&self) -> Option<&CommitmentProofBytes>
pub fn client_proof(&self) -> Option<&CommitmentProofBytes>
Getter for the client_proof.
Sourcepub fn other_proof(&self) -> Option<&CommitmentProofBytes>
pub fn other_proof(&self) -> Option<&CommitmentProofBytes>
Getter for the other_proof.
Trait Implementations§
impl Eq for Proofs
impl StructuralPartialEq for Proofs
Auto Trait Implementations§
impl Freeze for Proofs
impl RefUnwindSafe for Proofs
impl Send for Proofs
impl Sync for Proofs
impl Unpin for Proofs
impl UnwindSafe for Proofs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request