mirror of
https://github.com/tower-rs/tower.git
synced 2025-09-29 22:11:03 +00:00
discover: Implement Clone for Change (#701)
Implements Clone for discover::Change, if the underlying key and value both implement clone. This is convenient for use-cases where a single change needs to be duplicated, and sent to multiple discover streams. Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
This commit is contained in:
parent
7d829f198e
commit
c049ded33f
@ -97,7 +97,7 @@ where
|
||||
}
|
||||
|
||||
/// A change in the service set.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Change<K, V> {
|
||||
/// A new service identified by key `K` was identified.
|
||||
Insert(K, V),
|
||||
|
Loading…
x
Reference in New Issue
Block a user