Struct message_filter::MessageFilter [] [src]

pub struct MessageFilter<V> where V: PartialOrd + Ord + Clone + Hash {
    // some fields omitted
}

Allows message filter container which may be limited by size or time. Get(value) is not required as only value is stored

Methods

impl<V> MessageFilter<V> where V: PartialOrd + Ord + Clone + Hash
[src]

constructor for size (capacity) based MessageFilter

fn with_capacity(capacity: usize) -> MessageFilter<V>

fn with_expiry_duration(time_to_live: Duration) -> MessageFilter<V>

constructor for time based HashMap

fn with_expiry_duration_and_capacity(time_to_live: Duration, capacity: usize) -> MessageFilter<V>

constructor for dual feature capacity or time based MessageFilter

fn add(&mut self, value: V)

Add a value to MessageFilter

fn check(&self, value: &V) -> bool

Check for existance of a key

fn len(&self) -> usize

Current size of cache