pub struct ServiceId { /* private fields */ }
Expand description
A per runtime unique identifier for a started service.
Implementations§
Source§impl ServiceId
impl ServiceId
Sourcepub fn instance_id(&self) -> u32
pub fn instance_id(&self) -> u32
Returns a for this service unique instance id.
The combination of Self::name
and Self::instance_id
is unique for each runtime.
Trait Implementations§
Source§impl Ord for ServiceId
impl Ord for ServiceId
Source§impl PartialOrd for ServiceId
impl PartialOrd for ServiceId
impl Copy for ServiceId
impl Eq for ServiceId
impl StructuralPartialEq for ServiceId
Auto Trait Implementations§
impl Freeze for ServiceId
impl RefUnwindSafe for ServiceId
impl Send for ServiceId
impl Sync for ServiceId
impl Unpin for ServiceId
impl UnwindSafe for ServiceId
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.