Trait ibc_core::primitives::Msg

source ·
pub trait Msg: Clone {
    type Raw: From<Self> + Message;

    // Required method
    fn type_url(&self) -> String;

    // Provided methods
    fn get_sign_bytes(self) -> Vec<u8>  { ... }
    fn to_any(self) -> Any { ... }
}
Expand description

Trait to be implemented by all IBC messages

Required Associated Types§

source

type Raw: From<Self> + Message

Required Methods§

source

fn type_url(&self) -> String

Unique type identifier for this message, to support encoding to/from prost_types::Any.

Provided Methods§

source

fn get_sign_bytes(self) -> Vec<u8>

source

fn to_any(self) -> Any

Object Safety§

This trait is not object safe.

Implementors§