pub fn with_predicate<P>(self, predicate: P) -> Layer<A, B, P>
    where
        P: Fn(&Error) -> bool + Clone,
    {
        Layer {
            primary: self.primary,
            fallback: self.fallback,
            predicate,
        }
    }
/// Returns a `Layer` that uses the given `predicate` to determine whether
/// to fall back.
Returns a `Layer` that uses the given `predicate` to determine whether
to fall back.
Returns a ` Layer ` that uses the given ` predicate ` to determine whether to fall back .
pub fn with_predicate<P>(self, predicate: P) -> Layer<A, B, P>
    where
        P: Fn(&Error) -> bool + Clone,
    {
        Layer {
            primary: self.primary,
            fallback: self.fallback,
            predicate,
        }
    }
pub fn with_predicate < P > ( self , predicate : P ) -> Layer < A , B , P > where P : Fn ( & Error ) -> bool + Clone , { Layer { primary : self . primary , fallback : self . fallback , predicate , } }
Returns a `Layer` that uses the given `predicate` to determine whether
to fall back.
Returns a ` Layer ` that uses the given ` predicate ` to determine whether to fall back .
self
predicate
P
self
predicate
P