Enum ibc::core::connection::types::msgs::ConnectionMsg
source · pub enum ConnectionMsg {
OpenInit(MsgConnectionOpenInit),
OpenTry(MsgConnectionOpenTry),
OpenAck(MsgConnectionOpenAck),
OpenConfirm(MsgConnectionOpenConfirm),
}
Expand description
Enumeration of all possible messages that the ICS3 protocol processes.
Variants§
OpenInit(MsgConnectionOpenInit)
OpenTry(MsgConnectionOpenTry)
OpenAck(MsgConnectionOpenAck)
OpenConfirm(MsgConnectionOpenConfirm)
Trait Implementations§
source§impl BorshDeserialize for ConnectionMsg
impl BorshDeserialize for ConnectionMsg
fn deserialize_reader<R>(reader: &mut R) -> Result<ConnectionMsg, 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 BorshSerialize for ConnectionMsg
impl BorshSerialize for ConnectionMsg
source§impl Clone for ConnectionMsg
impl Clone for ConnectionMsg
source§fn clone(&self) -> ConnectionMsg
fn clone(&self) -> ConnectionMsg
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 ConnectionMsg
impl Debug for ConnectionMsg
source§impl EnumExt for ConnectionMsg
impl EnumExt for ConnectionMsg
source§fn deserialize_variant<R>(
reader: &mut R,
variant_idx: u8
) -> Result<ConnectionMsg, Error>where
R: Read,
fn deserialize_variant<R>(
reader: &mut R,
variant_idx: u8
) -> Result<ConnectionMsg, Error>where
R: Read,
Deserialises given variant of an enum from the reader. Read more
source§impl From<ConnectionMsg> for MsgEnvelope
impl From<ConnectionMsg> for MsgEnvelope
source§fn from(original: ConnectionMsg) -> MsgEnvelope
fn from(original: ConnectionMsg) -> MsgEnvelope
Converts to this type from the input type.
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<MsgConnectionOpenConfirm> for ConnectionMsg
impl From<MsgConnectionOpenConfirm> for ConnectionMsg
source§fn from(original: MsgConnectionOpenConfirm) -> ConnectionMsg
fn from(original: MsgConnectionOpenConfirm) -> ConnectionMsg
Converts to this type from the input type.
source§impl From<MsgConnectionOpenInit> for ConnectionMsg
impl From<MsgConnectionOpenInit> for ConnectionMsg
source§fn from(original: MsgConnectionOpenInit) -> ConnectionMsg
fn from(original: MsgConnectionOpenInit) -> ConnectionMsg
Converts to this type from the input type.
source§impl From<MsgConnectionOpenTry> for ConnectionMsg
impl From<MsgConnectionOpenTry> for ConnectionMsg
source§fn from(original: MsgConnectionOpenTry) -> ConnectionMsg
fn from(original: MsgConnectionOpenTry) -> ConnectionMsg
Converts to this type from the input type.
source§impl JsonSchema for ConnectionMsg
impl JsonSchema for ConnectionMsg
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 ConnectionMsg
impl PartialEq for ConnectionMsg
source§fn eq(&self, other: &ConnectionMsg) -> bool
fn eq(&self, other: &ConnectionMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConnectionMsg
impl StructuralPartialEq for ConnectionMsg
Auto Trait Implementations§
impl Freeze for ConnectionMsg
impl RefUnwindSafe for ConnectionMsg
impl Send for ConnectionMsg
impl Sync for ConnectionMsg
impl Unpin for ConnectionMsg
impl UnwindSafe for ConnectionMsg
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