Enum openraft::ConfigError
source · pub enum ConfigError {
ParseError {
source: AnyError,
args: Vec<String>,
},
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§
ParseError
ElectionTimeout
The min election timeout is not smaller than the max election timeout.
MaxPayloadIs0
ElectionTimeoutLTHeartBeat
InvalidSnapshotPolicy
InvalidNumber
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
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 for ConfigError
impl PartialEq 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 StructuralPartialEq for ConfigError
Auto Trait Implementations§
impl Freeze for ConfigError
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnwindSafe for ConfigError
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