pub struct FnCallable<F> { /* private fields */ }Expand description
Convenience adapter: turn an async closure into a Callable.
ⓘ
let handle = FnCallable::new(|input, _ctx| async move { Ok(input) });Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FnCallable<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnCallable<F>where
F: RefUnwindSafe,
impl<F> Send for FnCallable<F>where
F: Send,
impl<F> Sync for FnCallable<F>where
F: Sync,
impl<F> Unpin for FnCallable<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnCallable<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnCallable<F>where
F: 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