Enum openraft::ConfigError
source · pub enum ConfigError {
ElectionTimeout {
min: u64,
max: u64,
},
MaxPayloadIs0,
ElectionTimeoutLTHeartBeat {
election_timeout_min: u64,
heartbeat_interval: u64,
},
InvalidSnapshotPolicy {
invalid: String,
syntax: String,
},
InvalidNumber {
invalid: String,
reason: String,
},
}
Expand description
Error variants related to configuration.
Variants§
Trait Implementations§
source§impl Debug for ConfigError
impl Debug for ConfigError
source§impl Display for ConfigError
impl Display for ConfigError
source§impl Error for ConfigError
impl Error for ConfigError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<ConfigError> for ConfigError
impl PartialEq<ConfigError> for ConfigError
source§fn eq(&self, other: &ConfigError) -> bool
fn eq(&self, other: &ConfigError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConfigError
impl StructuralEq for ConfigError
impl StructuralPartialEq for ConfigError
Auto Trait Implementations§
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnwindSafe for ConfigError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.