Trait zink::Event

source ·
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§

source

const NAME: &'static [u8]

Provided Methods§

source

fn log0(&self)

source

fn log1(&self, topic: &'static [u8])

source

fn log2(&self, topic1: &'static [u8], topic2: &'static [u8])

source

fn log3( &self, topic1: &'static [u8], topic2: &'static [u8], topic3: &'static [u8] )

source

fn log4( &self, topic1: &'static [u8], topic2: &'static [u8], topic3: &'static [u8], topic4: &'static [u8] )

Object Safety§

This trait is not object safe.

Implementors§