pub enum ServiceKey {
Type(TypeId),
Named {
type_id: TypeId,
name: String,
},
}Expand description
Service key for identifying and distinguishing different services Supports both type-based keys and named keys
Variants§
Type(TypeId)
Type-based key - uses TypeId as unique identifier
Named
Name-based key - combines TypeId and name as unique identifier
Implementations§
Source§impl ServiceKey
impl ServiceKey
Trait Implementations§
Source§impl Clone for ServiceKey
impl Clone for ServiceKey
Source§fn clone(&self) -> ServiceKey
fn clone(&self) -> ServiceKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceKey
impl Debug for ServiceKey
Source§impl Display for ServiceKey
impl Display for ServiceKey
Source§impl Hash for ServiceKey
impl Hash for ServiceKey
Source§impl PartialEq for ServiceKey
impl PartialEq for ServiceKey
impl Eq for ServiceKey
Auto Trait Implementations§
impl Freeze for ServiceKey
impl RefUnwindSafe for ServiceKey
impl Send for ServiceKey
impl Sync for ServiceKey
impl Unpin for ServiceKey
impl UnwindSafe for ServiceKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)