Struct CloneBodyFn
pub struct CloneBodyFn<F> { /* private fields */ }
A redirection Policy created from a closure.
See clone_body_fn for more details.
Trait Implementations
impl<F> Debug for CloneBodyFn<F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<F, B, E> Policy<B, E> for CloneBodyFn<F>
where
F: Fn(&B) -> Option<B>,
fn redirect(&mut self, &Attempt<'_>) -> Result<Action, E>fn clone_body(&self, body: &B) -> Option<B>
impl<F: Clone> Clone for CloneBodyFn<F>
fn clone(&self) -> Self