pub enum Change {
Registered(Instance),
Renewed {
service: String,
id: String,
},
Cancelled {
service: String,
id: String,
},
StatusChanged {
service: String,
id: String,
status: Status,
},
}Expand description
Something one node did that the others need to know about.
Variants§
Registered(Instance)
Renewed
Heartbeats replicate too, and must.
Without them a peer would hear about an instance once and never again, and would evict every instance it did not personally receive the registration for — the whole registry emptying on every node but one.
Cancelled
StatusChanged
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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