pub enum LeadershipEvent {
StartedLeading,
StoppedLeading,
}Expand description
Leadership state change events delivered asynchronously.
Variants§
Trait Implementations§
Source§impl Clone for LeadershipEvent
impl Clone for LeadershipEvent
Source§fn clone(&self) -> LeadershipEvent
fn clone(&self) -> LeadershipEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 LeadershipEvent
impl Debug for LeadershipEvent
Source§impl PartialEq for LeadershipEvent
impl PartialEq for LeadershipEvent
impl StructuralPartialEq for LeadershipEvent
Auto Trait Implementations§
impl Freeze for LeadershipEvent
impl RefUnwindSafe for LeadershipEvent
impl Send for LeadershipEvent
impl Sync for LeadershipEvent
impl Unpin for LeadershipEvent
impl UnsafeUnpin for LeadershipEvent
impl UnwindSafe for LeadershipEvent
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