Files
greptimedb/common_meta/election/trait.Election.html
2026-05-15 04:01:35 +00:00

83 lines
25 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Election` trait in crate `common_meta`."><title>Election in common_meta::election - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="common_meta" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Election</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../common_meta/index.html">common_<wbr>meta</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Election</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Leader" title="Leader">Leader</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.all_candidates" title="all_candidates">all_candidates</a></li><li><a href="#tymethod.campaign" title="campaign">campaign</a></li><li><a href="#tymethod.in_leader_infancy" title="in_leader_infancy">in_leader_infancy</a></li><li><a href="#tymethod.is_leader" title="is_leader">is_leader</a></li><li><a href="#tymethod.leader" title="leader">leader</a></li><li><a href="#tymethod.register_candidate" title="register_candidate">register_candidate</a></li><li><a href="#tymethod.resign" title="resign">resign</a></li><li><a href="#tymethod.subscribe_leader_change" title="subscribe_leader_change">subscribe_leader_change</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.reset_campaign" title="reset_campaign">reset_campaign</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In common_<wbr>meta::<wbr>election</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">common_meta</a>::<wbr><a href="index.html">election</a></div><h1>Trait <span class="trait">Election</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/common_meta/election.rs.html#202-240">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Election: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
type <a href="#associatedtype.Leader" class="associatedtype">Leader</a>;
// Required methods
fn <a href="#tymethod.is_leader" class="fn">is_leader</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.in_leader_infancy" class="fn">in_leader_infancy</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.register_candidate" class="fn">register_candidate</a>&lt;'life0, 'life1, 'async_trait&gt;(
&amp;'life0 self,
node_info: &amp;'life1 <a class="struct" href="struct.MetasrvNodeInfo.html" title="struct common_meta::election::MetasrvNodeInfo">MetasrvNodeInfo</a>,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait</span>;
<span class="item-spacer"></span> fn <a href="#tymethod.all_candidates" class="fn">all_candidates</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.MetasrvNodeInfo.html" title="struct common_meta::election::MetasrvNodeInfo">MetasrvNodeInfo</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span>;
<span class="item-spacer"></span> fn <a href="#tymethod.campaign" class="fn">campaign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span>;
<span class="item-spacer"></span> fn <a href="#tymethod.leader" class="fn">leader</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Election.html#associatedtype.Leader" title="type common_meta::election::Election::Leader">Leader</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span>;
<span class="item-spacer"></span> fn <a href="#tymethod.resign" class="fn">resign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span>;
<span class="item-spacer"></span> fn <a href="#tymethod.subscribe_leader_change" class="fn">subscribe_leader_change</a>(&amp;self) -&gt; Receiver&lt;<a class="enum" href="enum.LeaderChangeMessage.html" title="enum common_meta::election::LeaderChangeMessage">LeaderChangeMessage</a>&gt;;
// Provided method
fn <a href="#method.reset_campaign" class="fn">reset_campaign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span> { ... }
}</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Leader" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#203">Source</a><h4 class="code-header">type <a href="#associatedtype.Leader" class="associatedtype">Leader</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.is_leader" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#206">Source</a><h4 class="code-header">fn <a href="#tymethod.is_leader" class="fn">is_leader</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if current node is the leader.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.in_leader_infancy" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#213">Source</a><h4 class="code-header">fn <a href="#tymethod.in_leader_infancy" class="fn">in_leader_infancy</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>When a new leader is born, it may need some initialization
operations (asynchronous), this method tells us when these
initialization operations can be performed.</p>
<p>note: a new leader will only return true on the first call.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.register_candidate" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#216">Source</a><h4 class="code-header">fn <a href="#tymethod.register_candidate" class="fn">register_candidate</a>&lt;'life0, 'life1, 'async_trait&gt;(
&amp;'life0 self,
node_info: &amp;'life1 <a class="struct" href="struct.MetasrvNodeInfo.html" title="struct common_meta::election::MetasrvNodeInfo">MetasrvNodeInfo</a>,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Registers a candidate for the election.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.all_candidates" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#219">Source</a><h4 class="code-header">fn <a href="#tymethod.all_candidates" class="fn">all_candidates</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.MetasrvNodeInfo.html" title="struct common_meta::election::MetasrvNodeInfo">MetasrvNodeInfo</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Gets all candidates in the election.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.campaign" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#225">Source</a><h4 class="code-header">fn <a href="#tymethod.campaign" class="fn">campaign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Campaign waits to acquire leadership in an election.</p>
<p>Multiple sessions can participate in the election,
but only one can be the leader at a time.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leader" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#233">Source</a><h4 class="code-header">fn <a href="#tymethod.leader" class="fn">leader</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Election.html#associatedtype.Leader" title="type common_meta::election::Election::Leader">Leader</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Returns the leader value for the current election.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.resign" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#237">Source</a><h4 class="code-header">fn <a href="#tymethod.resign" class="fn">resign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../error/type.Result.html" title="type common_meta::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Releases election leadership so other campaigners may
acquire leadership on the election.</p>
</div></details><section id="tymethod.subscribe_leader_change" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#239">Source</a><h4 class="code-header">fn <a href="#tymethod.subscribe_leader_change" class="fn">subscribe_leader_change</a>(&amp;self) -&gt; Receiver&lt;<a class="enum" href="enum.LeaderChangeMessage.html" title="enum common_meta::election::LeaderChangeMessage">LeaderChangeMessage</a>&gt;</h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.reset_campaign" class="method"><a class="src rightside" href="../../src/common_meta/election.rs.html#230">Source</a><h4 class="code-header">fn <a href="#method.reset_campaign" class="fn">reset_campaign</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Resets the campaign.</p>
<p>Reset the client and the leader flag if needed.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><div class="negative-marker"></div><details class="toggle implementors-toggle"><summary><section id="impl-Election-for-EtcdElection" class="impl"><a class="src rightside" href="../../src/common_meta/election/etcd.rs.html#100-268">Source</a><a href="#impl-Election-for-EtcdElection" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Election.html" title="trait common_meta::election::Election">Election</a> for <a class="struct" href="etcd/struct.EtcdElection.html" title="struct common_meta::election::etcd::EtcdElection">EtcdElection</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Leader-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/common_meta/election/etcd.rs.html#101">Source</a><a href="#associatedtype.Leader-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Leader" class="associatedtype">Leader</a> = <a class="struct" href="struct.LeaderValue.html" title="struct common_meta::election::LeaderValue">LeaderValue</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Election-for-MySqlElection" class="impl"><a class="src rightside" href="../../src/common_meta/election/rds/mysql.rs.html#535-685">Source</a><a href="#impl-Election-for-MySqlElection" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Election.html" title="trait common_meta::election::Election">Election</a> for <a class="struct" href="rds/mysql/struct.MySqlElection.html" title="struct common_meta::election::rds::mysql::MySqlElection">MySqlElection</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Leader-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/common_meta/election/rds/mysql.rs.html#536">Source</a><a href="#associatedtype.Leader-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Leader" class="associatedtype">Leader</a> = <a class="struct" href="struct.LeaderValue.html" title="struct common_meta::election::LeaderValue">LeaderValue</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Election-for-PgElection" class="impl"><a class="src rightside" href="../../src/common_meta/election/rds/postgres.rs.html#370-519">Source</a><a href="#impl-Election-for-PgElection" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Election.html" title="trait common_meta::election::Election">Election</a> for <a class="struct" href="rds/postgres/struct.PgElection.html" title="struct common_meta::election::rds::postgres::PgElection">PgElection</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Leader-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/common_meta/election/rds/postgres.rs.html#371">Source</a><a href="#associatedtype.Leader-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Leader" class="associatedtype">Leader</a> = <a class="struct" href="struct.LeaderValue.html" title="struct common_meta::election::LeaderValue">LeaderValue</a></h4></section></div></details></div><script src="../../trait.impl/common_meta/election/trait.Election.js" async></script></section></div></main></body></html>