pub trait SolEventInterface: Sized {
const NAME: &'static str;
const COUNT: usize;
// Required method
fn decode_raw_log(topics: &[Word], data: &[u8]) -> Result<Self>;
// Provided method
fn decode_log(log: &Log) -> Result<Log<Self>> { ... }
}
Expand description
Required Associated Constants§
Required Methods§
Sourcefn decode_raw_log(topics: &[Word], data: &[u8]) -> Result<Self>
fn decode_raw_log(topics: &[Word], data: &[u8]) -> Result<Self>
Decode the events from the given log info.
Provided Methods§
Sourcefn decode_log(log: &Log) -> Result<Log<Self>>
fn decode_log(log: &Log) -> Result<Log<Self>>
Decode the events from the given log object.
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.