hpl_toolkit::compression

Trait CompressedDataChunk

source
pub trait CompressedDataChunk {
    const KEY: &'static str;

    // Provided methods
    fn event_stream(&self) -> CompressedDataEventStream
       where Self: AnchorSerialize + ToSchema { ... }
    fn emit<'info>(
        &self,
        slot: u64,
        leaf_idx: u32,
        merkle_tree: &AccountInfo<'info>,
        log_wrapper: &Program<'info, Noop>,
        seq_offset: u64,
    ) -> Result<()>
       where Self: AnchorSerialize + ToSchema { ... }
}

Required Associated Constants§

source

const KEY: &'static str

Provided Methods§

source

fn event_stream(&self) -> CompressedDataEventStream
where Self: AnchorSerialize + ToSchema,

source

fn emit<'info>( &self, slot: u64, leaf_idx: u32, merkle_tree: &AccountInfo<'info>, log_wrapper: &Program<'info, Noop>, seq_offset: u64, ) -> Result<()>
where Self: AnchorSerialize + ToSchema,

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§