Struct cernan::filter::delay_filter::DelayFilter [−][src]
pub struct DelayFilter { /* fields omitted */ }
Filter streams to within a bounded interval of current time.
This filter is intended to remove items from the stream which are too old,
as defined by the current time and the configured tolerance
. That is, if
for some time T
, (T - time::now()).abs() > tolerance
the item associated
with T
will be rejected.
Methods
impl DelayFilter
[src]
impl DelayFilter
pub fn new(config: &DelayFilterConfig) -> DelayFilter
[src]
pub fn new(config: &DelayFilterConfig) -> DelayFilter
Create a new DelayFilter
Trait Implementations
impl Filter for DelayFilter
[src]
impl Filter for DelayFilter
Auto Trait Implementations
impl Send for DelayFilter
impl Send for DelayFilter
impl Sync for DelayFilter
impl Sync for DelayFilter