pub struct ProviderDescriptor {
pub type_name: &'static str,
pub scope: Scope,
pub factory: Arc<dyn ProviderFactory>,
}Expand description
Describes how a type is provided to the DI container.
Fields§
§type_name: &'static str§scope: Scope§factory: Arc<dyn ProviderFactory>Trait Implementations§
Source§impl Clone for ProviderDescriptor
impl Clone for ProviderDescriptor
Source§fn clone(&self) -> ProviderDescriptor
fn clone(&self) -> ProviderDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderDescriptor
impl !RefUnwindSafe for ProviderDescriptor
impl Send for ProviderDescriptor
impl Sync for ProviderDescriptor
impl Unpin for ProviderDescriptor
impl UnsafeUnpin for ProviderDescriptor
impl !UnwindSafe for ProviderDescriptor
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