pub trait PackableStats {
// Required methods
fn pack(&self, packer: RowPacker<'_>);
fn unpack(row: Row, metrics: &StorageControllerMetrics) -> (GlobalId, Self);
}
Expand description
A trait that abstracts over user-facing statistics objects, used
by spawn_statistics_scraper
.
Required Methods§
Sourcefn unpack(row: Row, metrics: &StorageControllerMetrics) -> (GlobalId, Self)
fn unpack(row: Row, metrics: &StorageControllerMetrics) -> (GlobalId, Self)
Unpack a Row
back into a Self
.
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.