Trait anchor_lang::Event

source ·
pub trait Event: AnchorSerialize + AnchorDeserialize + Discriminator {
    // Required method
    fn data(&self) -> Vec<u8> ;
}
Expand description

An event that can be emitted via a Solana log. See emit! for an example.

Required Methods§

source

fn data(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§