pub fn new(meta: model::MessageGroup) -> MessageGroup {
        MessageGroup {
            counter: 0,
            msgs: LruCache::new(min(meta.capacity as usize, CAPACITY_HARD_MAX)),
            pinned_msgs: LruCache::new(min(meta.pinned_capacity as usize, CAPACITY_HARD_MAX)),
            meta,
        }
    }
/// Create a new message group with the given capacity and pinned capacity.
Create a new message group with the given capacity and pinned capacity.
Create a new message group with the given capacity and pinned capacity .
pub fn new(meta: model::MessageGroup) -> MessageGroup {
        MessageGroup {
            counter: 0,
            msgs: LruCache::new(min(meta.capacity as usize, CAPACITY_HARD_MAX)),
            pinned_msgs: LruCache::new(min(meta.pinned_capacity as usize, CAPACITY_HARD_MAX)),
            meta,
        }
    }
pub fn new ( meta : model :: MessageGroup ) -> MessageGroup { MessageGroup { counter : 0 , msgs : LruCache :: new ( min ( meta . capacity as usize , CAPACITY_HARD_MAX ) ) , pinned_msgs : LruCache :: new ( min ( meta . pinned_capacity as usize , CAPACITY_HARD_MAX ) ) , meta , } }
Create a new message group with the given capacity and pinned capacity.
Create a new message group with the given capacity and pinned capacity .
meta
model::MessageGroup
meta
model::MessageGroup