Struct ibc::core::ics03_connection::msgs::conn_open_try::MsgConnectionOpenTry
source · pub struct MsgConnectionOpenTry {
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: CommitmentProofBytes,
pub proof_client_state_of_b_on_a: CommitmentProofBytes,
pub proof_consensus_state_of_b_on_a: CommitmentProofBytes,
pub proofs_height_on_a: Height,
pub consensus_height_of_b_on_a: Height,
pub delay_period: Duration,
pub signer: Signer,
/* private fields */
}
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: CommitmentProofBytes
proof of ConnectionEnd stored on Chain A during ConnOpenInit
proof_client_state_of_b_on_a: CommitmentProofBytes
proof that chain A has stored ClientState of chain B on its client
proof_consensus_state_of_b_on_a: CommitmentProofBytes
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: Signer
Trait Implementations
sourceimpl Clone for MsgConnectionOpenTry
impl Clone for MsgConnectionOpenTry
sourcefn clone(&self) -> MsgConnectionOpenTry
fn clone(&self) -> MsgConnectionOpenTry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MsgConnectionOpenTry
impl Debug for MsgConnectionOpenTry
sourceimpl From<MsgConnectionOpenTry> for RawMsgConnectionOpenTry
impl From<MsgConnectionOpenTry> for RawMsgConnectionOpenTry
sourcefn from(msg: MsgConnectionOpenTry) -> Self
fn from(msg: MsgConnectionOpenTry) -> Self
Converts to this type from the input type.
sourceimpl Msg for MsgConnectionOpenTry
impl Msg for MsgConnectionOpenTry
type ValidationError = Error
type Raw = MsgConnectionOpenTry
fn route(&self) -> String
sourcefn type_url(&self) -> String
fn type_url(&self) -> String
Unique type identifier for this message, to support encoding to/from
prost_types::Any
.fn to_any(self) -> Any
fn get_sign_bytes(self) -> Vec<u8> ⓘ
fn validate_basic(&self) -> Result<(), ValidationError>
sourceimpl PartialEq<MsgConnectionOpenTry> for MsgConnectionOpenTry
impl PartialEq<MsgConnectionOpenTry> for MsgConnectionOpenTry
sourcefn eq(&self, other: &MsgConnectionOpenTry) -> bool
fn eq(&self, other: &MsgConnectionOpenTry) -> bool
sourceimpl Protobuf<MsgConnectionOpenTry> for MsgConnectionOpenTry
impl Protobuf<MsgConnectionOpenTry> for MsgConnectionOpenTry
sourcefn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
fn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
Encode into a buffer in Protobuf format. Read more
sourcefn encode_length_delimited(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
fn encode_length_delimited(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
Encode with a length-delimiter to a buffer in Protobuf format. Read more
sourcefn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
Constructor that attempts to decode an instance from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
sourcefn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
Encodes into a Protobuf-encoded
Vec<u8>
.sourcefn decode_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent). Read moresourcefn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
Encode with a length-delimiter to a
Vec<u8>
Protobuf-encoded message.sourcefn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a
Vec<u8>
or equivalent. Read morefn encode_to_hex_string(&self) -> String
impl Eq for MsgConnectionOpenTry
impl StructuralEq for MsgConnectionOpenTry
impl StructuralPartialEq for MsgConnectionOpenTry
Auto Trait Implementations
impl RefUnwindSafe for MsgConnectionOpenTry
impl Send for MsgConnectionOpenTry
impl Sync for MsgConnectionOpenTry
impl Unpin for MsgConnectionOpenTry
impl UnwindSafe for MsgConnectionOpenTry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more