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) -> CloneBodyFn<F>
impl<F: Copy> Copy for CloneBodyFn<F>
Auto Trait Implementations
impl<F> Freeze for CloneBodyFn<F>
where
F: Freeze,
impl<F> RefUnwindSafe for CloneBodyFn<F>
where
F: RefUnwindSafe,
impl<F> Send for CloneBodyFn<F>
where
F: Send,
impl<F> Sync for CloneBodyFn<F>
where
F: Sync,
impl<F> Unpin for CloneBodyFn<F>
where
F: Unpin,
impl<F> UnsafeUnpin for CloneBodyFn<F>
where
F: UnsafeUnpin,
impl<F> UnwindSafe for CloneBodyFn<F>
where
F: UnwindSafe,
Blanket Implementations
impl<T> Any for CloneBodyFn<F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CloneBodyFn<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CloneBodyFn<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CloneBodyFn<F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CloneBodyFn<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for CloneBodyFn<F>
impl<T> PolicyExt for CloneBodyFn<F>
where
T: ?Sized,
fn and<P, B, E>(self, other: P) -> And<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,fn or<P, B, E>(self, other: P) -> Or<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,
impl<T> ToOwned for CloneBodyFn<F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for CloneBodyFn<F>
impl<T, U> Into<U> for CloneBodyFn<F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CloneBodyFn<F>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for CloneBodyFn<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>