Skip to main content

EventCodec

Trait EventCodec 

Source
pub trait EventCodec {
    // Required methods
    fn event_signature(&self) -> Cow<'static, str>;
    fn kind(&self) -> EventKind;
    fn decode(&self, log: &RawLog) -> Result<Events, AbiError>;
}
Expand description

Codec to deserialize Ethereum events.

Required Methods§

Source

fn event_signature(&self) -> Cow<'static, str>

ABI signature of the Ethereum event.

Source

fn kind(&self) -> EventKind

The kind of event.

Source

fn decode(&self, log: &RawLog) -> Result<Events, AbiError>

Decode an Ethereum event.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EventCodec for PhantomData<TransferToChainFilter>

Source§

fn event_signature(&self) -> Cow<'static, str>

Source§

fn kind(&self) -> EventKind

Source§

fn decode(&self, log: &RawLog) -> Result<Events, AbiError>

Source§

impl EventCodec for PhantomData<TransferToErcFilter>

Source§

fn event_signature(&self) -> Cow<'static, str>

Source§

fn kind(&self) -> EventKind

Source§

fn decode(&self, log: &RawLog) -> Result<Events, AbiError>

Source§

impl EventCodec for PhantomData<ValidatorSetUpdateFilter>

Source§

fn event_signature(&self) -> Cow<'static, str>

Source§

fn kind(&self) -> EventKind

Source§

fn decode(&self, log: &RawLog) -> Result<Events, AbiError>

Implementors§