var searchIndex = {}; searchIndex["message_filter"] = {"doc":"# Message Filter","items":[[3,"MessageFilter","message_filter","Implementation of [message filter](index.html#message-filter).",null,null],[11,"with_capacity","","Constructor for capacity based `MessageFilter`.",0,{"inputs":[{"name":"usize"}],"output":{"name":"messagefilter"}}],[11,"with_expiry_duration","","Constructor for time based `MessageFilter`.",0,{"inputs":[{"name":"duration"}],"output":{"name":"messagefilter"}}],[11,"with_expiry_duration_and_capacity","","Constructor for dual-feature capacity and time based `MessageFilter`.",0,{"inputs":[{"name":"duration"},{"name":"usize"}],"output":{"name":"messagefilter"}}],[11,"insert","","Removes any expired messages, then adds `message`, then removes enough older messages until\nthe message count is at or below `capacity`. If `message` already exists in the filter and\nis not already expired, its original expiry time and place in the FIFO queue remains\nunchanged by this call.",0,null],[11,"contains","","Removes any expired messages, then returns whether `message` exists in the filter or not.",0,null],[11,"len","","Returns the size of the filter, i.e. the number of added messages.",0,null]],"paths":[[3,"MessageFilter"]]}; initSearch(searchIndex);