pub enum TestFunction {
Sync(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Box<dyn TestReturnValue> + Send + Sync>),
SyncBench(Arc<dyn Fn(&mut Bencher, Arc<dyn DependencyView + Send + Sync>) + Send + Sync>),
Async(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = Box<dyn TestReturnValue>>>> + Send + Sync>),
AsyncBench(Arc<dyn for<'a> Fn(&'a mut AsyncBencher, Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + 'a>> + Send + Sync>),
}
Variants§
Sync(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Box<dyn TestReturnValue> + Send + Sync>)
SyncBench(Arc<dyn Fn(&mut Bencher, Arc<dyn DependencyView + Send + Sync>) + Send + Sync>)
Async(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = Box<dyn TestReturnValue>>>> + Send + Sync>)
AsyncBench(Arc<dyn for<'a> Fn(&'a mut AsyncBencher, Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = ()> + 'a>> + Send + Sync>)
Implementations§
Trait Implementations§
Source§impl Clone for TestFunction
impl Clone for TestFunction
Source§fn clone(&self) -> TestFunction
fn clone(&self) -> TestFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TestFunction
impl !RefUnwindSafe for TestFunction
impl Send for TestFunction
impl Sync for TestFunction
impl Unpin for TestFunction
impl !UnwindSafe for TestFunction
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