pub enum ProviderSelection {
Unique,
Default,
Explicit,
OptionalAbsent,
}Expand description
How a resolved provider was selected for a requirement.
Variants§
Unique
One provider uniquely matched the requirement.
Default
A declared default selected the provider.
Explicit
An explicit selection overrode defaults or automatic choice.
OptionalAbsent
The optional requirement was not activated.
Trait Implementations§
Source§impl Clone for ProviderSelection
impl Clone for ProviderSelection
impl Copy for ProviderSelection
Source§impl Debug for ProviderSelection
impl Debug for ProviderSelection
impl Eq for ProviderSelection
Source§impl Ord for ProviderSelection
impl Ord for ProviderSelection
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProviderSelection
impl PartialEq for ProviderSelection
Source§impl PartialOrd for ProviderSelection
impl PartialOrd for ProviderSelection
impl StructuralPartialEq for ProviderSelection
Auto Trait Implementations§
impl Freeze for ProviderSelection
impl RefUnwindSafe for ProviderSelection
impl Send for ProviderSelection
impl Sync for ProviderSelection
impl Unpin for ProviderSelection
impl UnsafeUnpin for ProviderSelection
impl UnwindSafe for ProviderSelection
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