pub struct FnOperation<T, F>where
T: Interceptable,
F: Fn(&T::Input) -> Pin<Box<dyn Future<Output = T::Output> + Send + '_>> + Send + Sync,{ /* private fields */ }Expand description
Wrap a closure as an Operation.
Implementations§
Trait Implementations§
Source§impl<T, F> Operation<T> for FnOperation<T, F>
impl<T, F> Operation<T> for FnOperation<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for FnOperation<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for FnOperation<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for FnOperation<T, F>
impl<T, F> Sync for FnOperation<T, F>
impl<T, F> Unpin for FnOperation<T, F>
impl<T, F> UnwindSafe for FnOperation<T, F>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more