pub enum JoinRejection {
VersionSkew {
expected: u32,
got: u32,
},
JoinsDisabled,
Duplicate,
Other(String),
}Expand description
Reason a JoinRequest was rejected.
Variants§
VersionSkew
Protocol version mismatch — hard reject (join-version-skew).
JoinsDisabled
The cluster is not currently accepting joins (--allow-join off).
Duplicate
A node with this id is already a member.
Other(String)
Any other refusal, human-readable.
Trait Implementations§
Source§impl Clone for JoinRejection
impl Clone for JoinRejection
Source§fn clone(&self) -> JoinRejection
fn clone(&self) -> JoinRejection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JoinRejection
impl Debug for JoinRejection
Source§impl<'de> Deserialize<'de> for JoinRejection
impl<'de> Deserialize<'de> for JoinRejection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JoinRejection
Source§impl PartialEq for JoinRejection
impl PartialEq for JoinRejection
Source§impl Serialize for JoinRejection
impl Serialize for JoinRejection
impl StructuralPartialEq for JoinRejection
Auto Trait Implementations§
impl Freeze for JoinRejection
impl RefUnwindSafe for JoinRejection
impl Send for JoinRejection
impl Sync for JoinRejection
impl Unpin for JoinRejection
impl UnsafeUnpin for JoinRejection
impl UnwindSafe for JoinRejection
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