pub struct PluginMetadata {
pub name: &'static str,
pub version: &'static str,
pub magic_number: [u8; 4],
pub throughput: f64,
pub compression_ratio: f64,
pub description: &'static str,
}Expand description
Metadata describing a compression plugin’s capabilities and performance
Fields§
§name: &'static strPlugin name (e.g., “deflate”, “zstd”, “lz4”)
version: &'static strPlugin version (semantic versioning)
magic_number: [u8; 4]Unique 4-byte magic number for this plugin’s compressed format
Format: [0x43, 0x52, version, plugin_id]
Where: 0x43=‘C’, 0x52=‘R’ (Crush identifier)
throughput: f64Expected throughput in MB/s (measured under standard conditions)
compression_ratio: f64Expected compression ratio (compressed_size / original_size)
Range: (0.0, 1.0] where lower is better compression
description: &'static strHuman-readable description
Trait Implementations§
Source§impl Clone for PluginMetadata
impl Clone for PluginMetadata
Source§fn clone(&self) -> PluginMetadata
fn clone(&self) -> PluginMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginMetadata
impl Debug for PluginMetadata
impl Copy for PluginMetadata
Auto Trait Implementations§
impl Freeze for PluginMetadata
impl RefUnwindSafe for PluginMetadata
impl Send for PluginMetadata
impl Sync for PluginMetadata
impl Unpin for PluginMetadata
impl UnsafeUnpin for PluginMetadata
impl UnwindSafe for PluginMetadata
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