pub struct ServiceInstanceId(/* private fields */);Expand description
Process-unique identity of an underlying service instance.
Minted once at service construction (Owned and Shared alike) and carried by
the service, so cloning a ServiceMode::Shared handle into a second
scheduler yields the SAME id there: two inventory entries with equal ids ARE
the same instance, which makes the process-wide dedup (spec §5/§9 Q2) a
plain group-by rather than a heuristic.
Implementations§
Source§impl ServiceInstanceId
impl ServiceInstanceId
Sourcepub const DISABLED: Self
pub const DISABLED: Self
Identity used for a ServiceMode::Disabled slot — a service that was
never constructed and so has no instance. Never equal to a minted id.
Trait Implementations§
Source§impl Clone for ServiceInstanceId
impl Clone for ServiceInstanceId
Source§fn clone(&self) -> ServiceInstanceId
fn clone(&self) -> ServiceInstanceId
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 ServiceInstanceId
Source§impl Debug for ServiceInstanceId
impl Debug for ServiceInstanceId
impl Eq for ServiceInstanceId
Source§impl Hash for ServiceInstanceId
impl Hash for ServiceInstanceId
Source§impl Ord for ServiceInstanceId
impl Ord for ServiceInstanceId
Source§fn cmp(&self, other: &ServiceInstanceId) -> Ordering
fn cmp(&self, other: &ServiceInstanceId) -> Ordering
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
Source§impl PartialEq for ServiceInstanceId
impl PartialEq for ServiceInstanceId
Source§impl PartialOrd for ServiceInstanceId
impl PartialOrd for ServiceInstanceId
impl StructuralPartialEq for ServiceInstanceId
Auto Trait Implementations§
impl Freeze for ServiceInstanceId
impl RefUnwindSafe for ServiceInstanceId
impl Send for ServiceInstanceId
impl Sync for ServiceInstanceId
impl Unpin for ServiceInstanceId
impl UnsafeUnpin for ServiceInstanceId
impl UnwindSafe for ServiceInstanceId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.