pub trait LeaderKey:
Send
+ Sync
+ Debug {
// Required methods
fn name(&self) -> &[u8] ⓘ;
fn key(&self) -> &[u8] ⓘ;
fn revision(&self) -> i64;
fn lease_id(&self) -> i64;
}Expand description
LeaderKey is a key that represents the leader of metasrv. The structure is corresponding to [etcd_client::LeaderKey].
Required Methods§
Sourcefn name(&self) -> &[u8] ⓘ
fn name(&self) -> &[u8] ⓘ
The name in byte. name is the election identifier that corresponds to the leadership key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".