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: 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,
pub proof_consensus_state_of_b: Option<CommitmentProofBytes>,
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: ClientIdClientId on B that the connection is being opened for
client_state_of_b_on_a: AnyClientState of client tracking chain B on chain A
counterparty: CounterpartyClientId, ConnectionId and prefix of chain A
versions_on_a: Vec<Version>Versions supported by chain A
proof_conn_end_on_a: CommitmentProofBytesproof of ConnectionEnd stored on Chain A during ConnOpenInit
proof_client_state_of_b_on_a: CommitmentProofBytesproof that chain A has stored ClientState of chain B on its client
proof_consensus_state_of_b_on_a: CommitmentProofBytesproof that chain A has stored ConsensusState of chain B on its client
proofs_height_on_a: HeightHeight at which all proofs in this message were taken
consensus_height_of_b_on_a: Heightheight of latest header of chain A that updated the client on chain B
delay_period: Duration§signer: Signer§proof_consensus_state_of_b: Option<CommitmentProofBytes>optional proof of host state machines (chain B) that are unable to introspect their own consensus state
previous_connection_id: String👎Deprecated since 0.22.0
Only kept here for proper conversion to/from the raw type
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MsgConnectionOpenTry
impl<'arbitrary> Arbitrary<'arbitrary> for MsgConnectionOpenTry
Source§fn arbitrary(
u: &mut Unstructured<'arbitrary>,
) -> Result<MsgConnectionOpenTry, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary>, ) -> Result<MsgConnectionOpenTry, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<MsgConnectionOpenTry, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<MsgConnectionOpenTry, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl BorshDeserialize for MsgConnectionOpenTry
impl BorshDeserialize for MsgConnectionOpenTry
fn deserialize_reader<R>(reader: &mut R) -> Result<MsgConnectionOpenTry, 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 MsgConnectionOpenTry
impl Clone for MsgConnectionOpenTry
Source§fn clone(&self) -> MsgConnectionOpenTry
fn clone(&self) -> MsgConnectionOpenTry
Returns a duplicate 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 MsgConnectionOpenTry
impl Debug for MsgConnectionOpenTry
Source§impl From<MsgConnectionOpenTry> for ConnectionMsg
impl From<MsgConnectionOpenTry> for ConnectionMsg
Source§fn from(value: MsgConnectionOpenTry) -> ConnectionMsg
fn from(value: MsgConnectionOpenTry) -> ConnectionMsg
Converts to this type from the input type.
Source§impl From<MsgConnectionOpenTry> for MsgConnectionOpenTry
impl From<MsgConnectionOpenTry> for MsgConnectionOpenTry
Source§fn from(msg: MsgConnectionOpenTry) -> MsgConnectionOpenTry
fn from(msg: MsgConnectionOpenTry) -> MsgConnectionOpenTry
Converts to this type from the input type.
Source§impl JsonSchema for MsgConnectionOpenTry
impl JsonSchema for MsgConnectionOpenTry
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 MsgConnectionOpenTry
impl PartialEq for MsgConnectionOpenTry
Source§impl Protobuf<MsgConnectionOpenTry> for MsgConnectionOpenTry
impl Protobuf<MsgConnectionOpenTry> for MsgConnectionOpenTry
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<MsgConnectionOpenTry> for MsgConnectionOpenTry
impl TryFrom<MsgConnectionOpenTry> for MsgConnectionOpenTry
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
Source§fn try_from(
msg: MsgConnectionOpenTry,
) -> Result<MsgConnectionOpenTry, <MsgConnectionOpenTry as TryFrom<MsgConnectionOpenTry>>::Error>
fn try_from( msg: MsgConnectionOpenTry, ) -> Result<MsgConnectionOpenTry, <MsgConnectionOpenTry as TryFrom<MsgConnectionOpenTry>>::Error>
Performs the conversion.
impl Eq for MsgConnectionOpenTry
impl StructuralPartialEq for MsgConnectionOpenTry
Auto Trait Implementations§
impl Freeze for MsgConnectionOpenTry
impl RefUnwindSafe for MsgConnectionOpenTry
impl Send for MsgConnectionOpenTry
impl Sync for MsgConnectionOpenTry
impl Unpin for MsgConnectionOpenTry
impl UnwindSafe for MsgConnectionOpenTry
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