hpl_toolkit::compression

Trait CompressedData

Source
pub trait CompressedData {
    // 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 { ... }
}

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§