pub trait Event {
const NAME: &'static [u8];
// Provided methods
fn log0(&self) { ... }
fn log1(&self, topic: &'static [u8]) { ... }
fn log2(&self, topic1: &'static [u8], topic2: &'static [u8]) { ... }
fn log3(
&self,
topic1: &'static [u8],
topic2: &'static [u8],
topic3: &'static [u8],
) { ... }
fn log4(
&self,
topic1: &'static [u8],
topic2: &'static [u8],
topic3: &'static [u8],
topic4: &'static [u8],
) { ... }
}
Expand description
Zink event interface
TODO: safety check for the length of the event name
Required Associated Constants§
Provided Methods§
fn log0(&self)
fn log1(&self, topic: &'static [u8])
fn log2(&self, topic1: &'static [u8], topic2: &'static [u8])
fn log3( &self, topic1: &'static [u8], topic2: &'static [u8], topic3: &'static [u8], )
fn log4( &self, topic1: &'static [u8], topic2: &'static [u8], topic3: &'static [u8], topic4: &'static [u8], )
Object Safety§
This trait is not object safe.