fn new<Err>(
        time: Time,
        first: &'a dyn IngressSetQuery,
        second: impl Fn() -> Result<T, Err>,
    ) -> Result<IngressSetChain<'a, T>, Err> {
        let next = if first.get_expiry_lower_bound() + MAX_INGRESS_TTL <= time {
            None
        } else {
            Some(second()?)
        };
        Ok(IngressSetChain { first, next })
    }
/// Return the Chaining of two IngerssSetQuery object that can be
/// used to check if an ingress message with an expiry time in the range
/// of `time .. time + MAX_INGRESS_TTL` already exists in the set.
///
/// If the first IngressSetQuery is enough to cover the full range (i.e.
/// its expiry lower bound <= time - MAX_INGRESS_TTL), the second
/// IngressSetQuery object will not be used.
Return the Chaining of two IngerssSetQuery object that can be
used to check if an ingress message with an expiry time in the range
of `time .. time + MAX_INGRESS_TTL` already exists in the set.

If the first IngressSetQuery is enough to cover the full range , the second
IngressSetQuery object will not be used.
Return the Chaining of two IngerssSetQuery object that can be used to check if an ingress message with an expiry time in the range of ` time .. time + MAX_INGRESS_TTL ` already exists in the set . If the first IngressSetQuery is enough to cover the full range the second IngressSetQuery object will not be used .
fn new<Err>(
        time: Time,
        first: &'a dyn IngressSetQuery,
        second: impl Fn() -> Result<T, Err>,
    ) -> Result<IngressSetChain<'a, T>, Err> {
        let next = if first.get_expiry_lower_bound() + MAX_INGRESS_TTL <= time {
            None
        } else {
            Some(second()?)
        };
        Ok(IngressSetChain { first, next })
    }
fn new < Err > ( time : Time , first : & ' a dyn IngressSetQuery , second : impl Fn ( ) -> Result < T , Err > , ) -> Result < IngressSetChain < ' a , T > , Err > { let next = if first . get_expiry_lower_bound ( ) + MAX_INGRESS_TTL <= time { None } else { Some ( second ( ) ? ) } ; Ok ( IngressSetChain { first , next } ) }
Return the Chaining of two IngerssSetQuery object that can be
used to check if an ingress message with an expiry time in the range
of `time .. time + MAX_INGRESS_TTL` already exists in the set.
Return the Chaining of two IngerssSetQuery object that can be used to check if an ingress message with an expiry time in the range of ` time .. time + MAX_INGRESS_TTL ` already exists in the set .
time
Time
first
&'a dyn IngressSetQuery
second
impl Fn() -> Result<T, Err>
time
Time
first
&'a dyn IngressSetQuery
second
impl Fn() -> Result<T, Err>