Enum Change

pub 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.

Trait Implementations

impl<K: Clone, V: Clone> Clone for Change<K, V>

fn clone(&self) -> Self

impl<K: Debug, V: Debug> Debug for Change<K, V>

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

Auto Trait Implementations

impl<K, V> Freeze for Change<K, V> where K: Freeze + Freeze, V: Freeze,

impl<K, V> RefUnwindSafe for Change<K, V> where K: RefUnwindSafe + RefUnwindSafe, V: RefUnwindSafe,

impl<K, V> Send for Change<K, V> where K: Send + Send, V: Send,

impl<K, V> Sync for Change<K, V> where K: Sync + Sync, V: Sync,

impl<K, V> Unpin for Change<K, V> where K: Unpin + Unpin, V: Unpin,

impl<K, V> UnsafeUnpin for Change<K, V> where K: UnsafeUnpin + UnsafeUnpin, V: UnsafeUnpin,

impl<K, V> UnwindSafe for Change<K, V> where K: UnwindSafe + UnwindSafe, V: UnwindSafe,

Blanket Implementations

impl<T> Any for Change<K, V> where T: 'static + ?Sized,

impl<T> Borrow<T> for Change<K, V> where T: ?Sized,

impl<T> BorrowMut<T> for Change<K, V> where T: ?Sized,

impl<T> CloneToUninit for Change<K, V> where T: Clone,

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

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

impl<T> ToOwned for Change<K, V> where T: Clone,

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

impl<T, U> Into<U> for Change<K, V> where U: From<T>,

impl<T, U> TryFrom<U> for Change<K, V> where U: Into<T>,

impl<T, U> TryInto<U> for Change<K, V> where U: TryFrom<T>,