zink::event

Trait Event

Source
pub trait Event {
    const NAME: &'static [u8];

    // Provided methods
    fn log0(&self) { ... }
    fn log1(&self, topic: impl Into<Bytes32>) { ... }
    fn log2(&self, topic1: impl Into<Bytes32>, topic2: impl Into<Bytes32>) { ... }
    fn log3(
        &self,
        topic1: impl Into<Bytes32>,
        topic2: impl Into<Bytes32>,
        topic3: impl Into<Bytes32>,
    ) { ... }
    fn log4(
        &self,
        topic1: impl Into<Bytes32>,
        topic2: impl Into<Bytes32>,
        topic3: impl Into<Bytes32>,
        topic4: impl Into<Bytes32>,
    ) { ... }
}
Expand description

Zink event interface

Required Associated Constants§

Source

const NAME: &'static [u8]

Provided Methods§

Source

fn log0(&self)

Source

fn log1(&self, topic: impl Into<Bytes32>)

Source

fn log2(&self, topic1: impl Into<Bytes32>, topic2: impl Into<Bytes32>)

Source

fn log3( &self, topic1: impl Into<Bytes32>, topic2: impl Into<Bytes32>, topic3: impl Into<Bytes32>, )

Source

fn log4( &self, topic1: impl Into<Bytes32>, topic2: impl Into<Bytes32>, topic3: impl Into<Bytes32>, topic4: impl Into<Bytes32>, )

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.

Implementors§