Skip to main content

TransactionEventEncodable

Trait TransactionEventEncodable 

Source
pub trait TransactionEventEncodable {
    // Required method
    fn to_event(&self) -> Vec<u8> ;
}

Required Methods§

Source

fn to_event(&self) -> Vec<u8>

SCALE encodes the event

If you need to Hex and SCALE encode then call encode_as_hex_event

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§