Trait Event

Source
pub trait Event: BorshSerialize + Discriminator {
    // Provided method
    fn emit_cpi_with_space(
        &self,
        event_authority: AccountInfo<'_>,
        event_authority_bump: u8,
        space: usize,
    ) -> Result<()> { ... }
}
Expand description

Event.

Provided Methods§

Source

fn emit_cpi_with_space( &self, event_authority: AccountInfo<'_>, event_authority_bump: u8, space: usize, ) -> Result<()>

Emit this event through CPI. This is a manual implementation of emit_cpi!.

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§