add more traits while we can

This commit is contained in:
Brooks Prumo
2021-09-15 15:57:31 -05:00
committed by Jeff Washington (jwash)
parent 9195c1ffe6
commit 8f7a9e8f0d

View File

@ -15,13 +15,14 @@ use tempfile::TempDir;
pub type MaxSearch = u8; pub type MaxSearch = u8;
pub type RefCount = u64; pub type RefCount = u64;
#[derive(Debug, Default, Clone)]
pub struct BucketMapKeyValue<T> { pub struct BucketMapKeyValue<T> {
pub pubkey: Pubkey, pub pubkey: Pubkey,
pub ref_count: RefCount, pub ref_count: RefCount,
pub slot_list: Vec<T>, pub slot_list: Vec<T>,
} }
#[derive(Debug, Default)] #[derive(Debug, Default, Clone)]
pub struct BucketMapConfig { pub struct BucketMapConfig {
pub max_buckets: usize, pub max_buckets: usize,
pub drives: Option<Vec<PathBuf>>, pub drives: Option<Vec<PathBuf>>,