pub struct ServiceIndex(/* private fields */);Expand description
Pool-local index of a registered service.
Same contract as MessageIndex / EnumIndex: stable for the
lifetime of the pool, no cross-pool identity.
Trait Implementations§
Source§impl Clone for ServiceIndex
impl Clone for ServiceIndex
Source§fn clone(&self) -> ServiceIndex
fn clone(&self) -> ServiceIndex
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 moreSource§impl Debug for ServiceIndex
impl Debug for ServiceIndex
Source§impl Hash for ServiceIndex
impl Hash for ServiceIndex
Source§impl Ord for ServiceIndex
impl Ord for ServiceIndex
Source§fn cmp(&self, other: &ServiceIndex) -> Ordering
fn cmp(&self, other: &ServiceIndex) -> 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 ServiceIndex
impl PartialEq for ServiceIndex
Source§fn eq(&self, other: &ServiceIndex) -> bool
fn eq(&self, other: &ServiceIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ServiceIndex
impl PartialOrd for ServiceIndex
impl Copy for ServiceIndex
impl Eq for ServiceIndex
impl StructuralPartialEq for ServiceIndex
Auto Trait Implementations§
impl Freeze for ServiceIndex
impl RefUnwindSafe for ServiceIndex
impl Send for ServiceIndex
impl Sync for ServiceIndex
impl Unpin for ServiceIndex
impl UnsafeUnpin for ServiceIndex
impl UnwindSafe for ServiceIndex
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