pub struct LeaderHandoverEvent {
pub from: Option<Address>,
pub to: Option<Address>,
}Expand description
Handover event emitted by a LeaderHandover watcher when the
elected leader changes between snapshots.
Cluster.LeaderChanged event published on the cluster’s domain
event stream.
Fields§
§from: Option<Address>§to: Option<Address>Trait Implementations§
Source§impl Clone for LeaderHandoverEvent
impl Clone for LeaderHandoverEvent
Source§fn clone(&self) -> LeaderHandoverEvent
fn clone(&self) -> LeaderHandoverEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeaderHandoverEvent
impl Debug for LeaderHandoverEvent
Source§impl PartialEq for LeaderHandoverEvent
impl PartialEq for LeaderHandoverEvent
Source§fn eq(&self, other: &LeaderHandoverEvent) -> bool
fn eq(&self, other: &LeaderHandoverEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeaderHandoverEvent
impl StructuralPartialEq for LeaderHandoverEvent
Auto Trait Implementations§
impl Freeze for LeaderHandoverEvent
impl RefUnwindSafe for LeaderHandoverEvent
impl Send for LeaderHandoverEvent
impl Sync for LeaderHandoverEvent
impl Unpin for LeaderHandoverEvent
impl UnsafeUnpin for LeaderHandoverEvent
impl UnwindSafe for LeaderHandoverEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.