Struct MsgConnectionOpenTry

pub struct MsgConnectionOpenTry {
Show 13 fields pub client_id_on_b: ClientId, pub client_state_of_b_on_a: Any, pub counterparty: Counterparty, pub versions_on_a: Vec<Version>, pub proof_conn_end_on_a: MerkleProof, pub proof_client_state_of_b_on_a: MerkleProof, pub proof_consensus_state_of_b_on_a: MerkleProof, pub proofs_height_on_a: Height, pub consensus_height_of_b_on_a: Height, pub delay_period: Duration, pub signer: String, pub proof_consensus_state_of_b: Option<MerkleProof>, pub previous_connection_id: String,
}
Expand description

Per our convention, this message is sent to chain B. The handler will check proofs of chain A.

Fields§

§client_id_on_b: ClientId

ClientId on B that the connection is being opened for

§client_state_of_b_on_a: Any

ClientState of client tracking chain B on chain A

§counterparty: Counterparty

ClientId, ConnectionId and prefix of chain A

§versions_on_a: Vec<Version>

Versions supported by chain A

§proof_conn_end_on_a: MerkleProof

proof of ConnectionEnd stored on Chain A during ConnOpenInit

§proof_client_state_of_b_on_a: MerkleProof

proof that chain A has stored ClientState of chain B on its client

§proof_consensus_state_of_b_on_a: MerkleProof

proof that chain A has stored ConsensusState of chain B on its client

§proofs_height_on_a: Height

Height at which all proofs in this message were taken

§consensus_height_of_b_on_a: Height

height of latest header of chain A that updated the client on chain B

§delay_period: Duration§signer: String§proof_consensus_state_of_b: Option<MerkleProof>§previous_connection_id: String
👎Deprecated since 0.22.0

Only kept here for proper conversion to/from the raw type

Trait Implementations§

§

impl Clone for MsgConnectionOpenTry

§

fn clone(&self) -> MsgConnectionOpenTry

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for MsgConnectionOpenTry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl DomainType for MsgConnectionOpenTry

§

type Proto = MsgConnectionOpenTry

§

fn encode_to_vec(&self) -> Vec<u8>

Encode this domain type to a byte vector, via proto type P.
§

fn to_proto(&self) -> Self::Proto

Convert this domain type to the associated proto type. Read more
§

fn decode<B>(buf: B) -> Result<Self, Error>
where B: Buf,

Decode this domain type from a byte buffer, via proto type P.
§

impl PartialEq for MsgConnectionOpenTry

§

fn eq(&self, other: &MsgConnectionOpenTry) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl TryFrom<MsgConnectionOpenTry> for MsgConnectionOpenTry

§

type Error = ConnectionError

The type returned in the event of a conversion error.
§

fn try_from( msg: MsgConnectionOpenTry, ) -> Result<MsgConnectionOpenTry, <MsgConnectionOpenTry as TryFrom<MsgConnectionOpenTry>>::Error>

Performs the conversion.
§

impl StructuralPartialEq for MsgConnectionOpenTry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more