pub enum DependencyConstructor {
Sync(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Arc<dyn Any + Send + Sync> + Send + Sync>),
Async(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = Arc<dyn Any + Send + Sync>>>> + Send + Sync>),
}
Variants§
Sync(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Arc<dyn Any + Send + Sync> + Send + Sync>)
Async(Arc<dyn Fn(Arc<dyn DependencyView + Send + Sync>) -> Pin<Box<dyn Future<Output = Arc<dyn Any + Send + Sync>>>> + Send + Sync>)
Trait Implementations§
Source§impl Clone for DependencyConstructor
impl Clone for DependencyConstructor
Source§fn clone(&self) -> DependencyConstructor
fn clone(&self) -> DependencyConstructor
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 DependencyConstructor
impl !RefUnwindSafe for DependencyConstructor
impl Send for DependencyConstructor
impl Sync for DependencyConstructor
impl Unpin for DependencyConstructor
impl !UnwindSafe for DependencyConstructor
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