pub struct SolanaCompressor { /* private fields */ }Expand description
Solana-optimized compression engine using Zstandard with custom dictionaries
Implementations§
Source§impl SolanaCompressor
impl SolanaCompressor
Sourcepub fn new(preset: SolanaPreset) -> Self
pub fn new(preset: SolanaPreset) -> Self
Create a new Solana compressor with the specified preset
Sourcepub fn add_amount_pattern(
&mut self,
amount: u64,
) -> Result<(), CompressionError>
pub fn add_amount_pattern( &mut self, amount: u64, ) -> Result<(), CompressionError>
Add a specific amount pattern
Sourcepub fn optimize_for_transactions(&mut self) -> Result<(), CompressionError>
pub fn optimize_for_transactions(&mut self) -> Result<(), CompressionError>
Optimize specifically for Solana transaction patterns
Sourcepub fn solana_stats(&self) -> SolanaCompressionStats
pub fn solana_stats(&self) -> SolanaCompressionStats
Get Solana-specific compression statistics
Trait Implementations§
Source§impl CompressionStrategy for SolanaCompressor
impl CompressionStrategy for SolanaCompressor
Source§type Error = CompressionError
type Error = CompressionError
The error type produced by this compression strategy
Source§fn metadata(&self) -> CompressionMetadata
fn metadata(&self) -> CompressionMetadata
Returns metadata about this compression algorithm
Source§fn stats(&self) -> CompressionStats
fn stats(&self) -> CompressionStats
Returns the current compression statistics
Auto Trait Implementations§
impl Freeze for SolanaCompressor
impl RefUnwindSafe for SolanaCompressor
impl Send for SolanaCompressor
impl Sync for SolanaCompressor
impl Unpin for SolanaCompressor
impl UnsafeUnpin for SolanaCompressor
impl UnwindSafe for SolanaCompressor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more