Trait mz_storage_client::statistics::PackableStats

source ·
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§

source

fn pack(&self, packer: RowPacker<'_>)

Pack self into the Row.

source

fn unpack(row: Row, metrics: &StorageControllerMetrics) -> (GlobalId, Self)

Unpack a Row back into a Self.

Object Safety§

This trait is not object safe.

Implementors§