pub struct ProviderNode { /* private fields */ }Expand description
Immutable metadata for one provider in an application graph.
Implementations§
Source§impl ProviderNode
impl ProviderNode
Sourcepub const fn origin(&self) -> ProviderOrigin
pub const fn origin(&self) -> ProviderOrigin
Returns how the provider enters the application graph.
Sourcepub const fn visibility(&self) -> ProviderVisibility
pub const fn visibility(&self) -> ProviderVisibility
Returns the provider declaration’s visibility metadata.
Sourcepub const fn state(&self) -> ProviderState
pub const fn state(&self) -> ProviderState
Returns the provider’s current satisfaction state.
Sourcepub const fn location(&self) -> Option<SourceLocation>
pub const fn location(&self) -> Option<SourceLocation>
Returns the provider declaration location when it is statically declared.
Sourcepub const fn declared_dependencies(&self) -> &[DependencyDescriptor]
pub const fn declared_dependencies(&self) -> &[DependencyDescriptor]
Returns the provider’s declared dependencies in source declaration order.
Auto Trait Implementations§
impl Forget for ProviderNode
impl Freeze for ProviderNode
impl Move for ProviderNode
impl RefUnwindSafe for ProviderNode
impl Send for ProviderNode
impl Sync for ProviderNode
impl Unpin for ProviderNode
impl UnsafeUnpin for ProviderNode
impl UnwindSafe for ProviderNode
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