Struct ibc::core::connection::types::msgs::MsgConnectionOpenAck
source · pub struct MsgConnectionOpenAck {
pub conn_id_on_a: ConnectionId,
pub conn_id_on_b: ConnectionId,
pub client_state_of_a_on_b: Any,
pub proof_conn_end_on_b: CommitmentProofBytes,
pub proof_client_state_of_a_on_b: CommitmentProofBytes,
pub proof_consensus_state_of_a_on_b: CommitmentProofBytes,
pub proofs_height_on_b: Height,
pub consensus_height_of_a_on_b: Height,
pub version: Version,
pub signer: Signer,
pub proof_consensus_state_of_a: Option<CommitmentProofBytes>,
}
Expand description
Per our convention, this message is sent to chain A. The handler will check proofs of chain B.
Fields§
§conn_id_on_a: ConnectionId
ConnectionId that chain A has chosen for it’s ConnectionEnd
conn_id_on_b: ConnectionId
ConnectionId that chain B has chosen for it’s ConnectionEnd
client_state_of_a_on_b: Any
ClientState of client tracking chain A on chain B
proof_conn_end_on_b: CommitmentProofBytes
proof of ConnectionEnd stored on Chain B during ConnOpenTry
proof_client_state_of_a_on_b: CommitmentProofBytes
proof of ClientState tracking chain A on chain B
proof_consensus_state_of_a_on_b: CommitmentProofBytes
proof that chain B has stored ConsensusState of chain A on its client
proofs_height_on_b: Height
Height at which all proofs in this message were taken
consensus_height_of_a_on_b: Height
height of latest header of chain A that updated the client on chain B
version: Version
§signer: Signer
§proof_consensus_state_of_a: Option<CommitmentProofBytes>
optional proof of host state machines (chain A) that are unable to introspect their own consensus state
Trait Implementations§
source§impl BorshDeserialize for MsgConnectionOpenAck
impl BorshDeserialize for MsgConnectionOpenAck
fn deserialize_reader<R>(reader: &mut R) -> Result<MsgConnectionOpenAck, Error>where
R: Read,
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for MsgConnectionOpenAck
impl Clone for MsgConnectionOpenAck
source§fn clone(&self) -> MsgConnectionOpenAck
fn clone(&self) -> MsgConnectionOpenAck
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 MsgConnectionOpenAck
impl Debug for MsgConnectionOpenAck
source§impl From<MsgConnectionOpenAck> for ConnectionMsg
impl From<MsgConnectionOpenAck> for ConnectionMsg
source§fn from(original: MsgConnectionOpenAck) -> ConnectionMsg
fn from(original: MsgConnectionOpenAck) -> ConnectionMsg
Converts to this type from the input type.
source§impl From<MsgConnectionOpenAck> for MsgConnectionOpenAck
impl From<MsgConnectionOpenAck> for MsgConnectionOpenAck
source§fn from(msg: MsgConnectionOpenAck) -> MsgConnectionOpenAck
fn from(msg: MsgConnectionOpenAck) -> MsgConnectionOpenAck
Converts to this type from the input type.
source§impl JsonSchema for MsgConnectionOpenAck
impl JsonSchema for MsgConnectionOpenAck
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for MsgConnectionOpenAck
impl PartialEq for MsgConnectionOpenAck
source§fn eq(&self, other: &MsgConnectionOpenAck) -> bool
fn eq(&self, other: &MsgConnectionOpenAck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Protobuf<MsgConnectionOpenAck> for MsgConnectionOpenAck
impl Protobuf<MsgConnectionOpenAck> for MsgConnectionOpenAck
source§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode into a buffer in Protobuf format. Read more
source§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
source§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
source§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
source§fn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent).source§impl TryFrom<MsgConnectionOpenAck> for MsgConnectionOpenAck
impl TryFrom<MsgConnectionOpenAck> for MsgConnectionOpenAck
§type Error = ConnectionError
type Error = ConnectionError
The type returned in the event of a conversion error.
source§fn try_from(
msg: MsgConnectionOpenAck
) -> Result<MsgConnectionOpenAck, <MsgConnectionOpenAck as TryFrom<MsgConnectionOpenAck>>::Error>
fn try_from( msg: MsgConnectionOpenAck ) -> Result<MsgConnectionOpenAck, <MsgConnectionOpenAck as TryFrom<MsgConnectionOpenAck>>::Error>
Performs the conversion.
impl Eq for MsgConnectionOpenAck
impl StructuralPartialEq for MsgConnectionOpenAck
Auto Trait Implementations§
impl Freeze for MsgConnectionOpenAck
impl RefUnwindSafe for MsgConnectionOpenAck
impl Send for MsgConnectionOpenAck
impl Sync for MsgConnectionOpenAck
impl Unpin for MsgConnectionOpenAck
impl UnwindSafe for MsgConnectionOpenAck
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