pub trait TransactionEventDecodable {
// Required methods
fn decode_event(event: &[u8]) -> Option<Box<Self>>;
fn decode_hex_event(event: &str) -> Option<Box<Self>>;
fn decode_event_data(event_data: &[u8]) -> Option<Box<Self>>;
}
Required Methods§
Sourcefn decode_event(event: &[u8]) -> Option<Box<Self>>
fn decode_event(event: &[u8]) -> Option<Box<Self>>
Decodes the SCALE encoded Event
If you need to decode Hex string call decode_hex_event
Sourcefn decode_hex_event(event: &str) -> Option<Box<Self>>
fn decode_hex_event(event: &str) -> Option<Box<Self>>
Decodes the Hex and SCALE encoded Transaction Call This is equal to Hex::decode + Self::decode_event
If you need to decode bytes call decode_event
Sourcefn decode_event_data(event_data: &[u8]) -> Option<Box<Self>>
fn decode_event_data(event_data: &[u8]) -> Option<Box<Self>>
Decodes the SCALE encoded Event Data
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.