Skip to main content

StateDecoder

Trait StateDecoder 

Source
pub trait StateDecoder: Send + Sync {
    // Required method
    fn decode_pool_state(&self, data: &[u8]) -> Result<(u64, u64)>;
}
Expand description

Trait for decoding on-chain pool state

Required Methods§

Source

fn decode_pool_state(&self, data: &[u8]) -> Result<(u64, u64)>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§