Enum Change

enum Change<K, V>

A change in the service set.

Variants

Insert(K, V)

A new service identified by key K was identified.

Remove(K)

The service identified by key K disappeared.

Implementations

impl<K, V> Freeze for Change<K, V>

impl<K, V> RefUnwindSafe for Change<K, V>

impl<K, V> Send for Change<K, V>

impl<K, V> Sync for Change<K, V>

impl<K, V> Unpin for Change<K, V>

impl<K, V> UnwindSafe for Change<K, V>

impl<K: $crate::clone::Clone, V: $crate::clone::Clone> Clone for Change<K, V>

fn clone(self: &Self) -> Change<K, V>

impl<K: $crate::fmt::Debug, V: $crate::fmt::Debug> Debug for Change<K, V>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<T> Any for Change<K, V>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Change<K, V>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Change<K, V>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Change<K, V>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Change<K, V>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Change<K, V>

impl<T> ToOwned for Change<K, V>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for Change<K, V>

impl<T, U> Into for Change<K, V>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Change<K, V>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Change<K, V>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>