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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> 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> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

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

fn into(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<U> for Change<K, V> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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