pub enum ServiceCardinality {
Single,
Multiple,
}Expand description
Declares whether a service key may have one or several providers.
Variants§
Single
Exactly zero or one provider may be registered for this key.
Multiple
Any number of providers may be registered for this key.
Trait Implementations§
Source§impl Clone for ServiceCardinality
impl Clone for ServiceCardinality
Source§fn clone(&self) -> ServiceCardinality
fn clone(&self) -> ServiceCardinality
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 moreimpl Copy for ServiceCardinality
Source§impl Debug for ServiceCardinality
impl Debug for ServiceCardinality
impl Eq for ServiceCardinality
Source§impl PartialEq for ServiceCardinality
impl PartialEq for ServiceCardinality
impl StructuralPartialEq for ServiceCardinality
Auto Trait Implementations§
impl Freeze for ServiceCardinality
impl RefUnwindSafe for ServiceCardinality
impl Send for ServiceCardinality
impl Sync for ServiceCardinality
impl Unpin for ServiceCardinality
impl UnsafeUnpin for ServiceCardinality
impl UnwindSafe for ServiceCardinality
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