pub enum AdminError {
NotLeader {
leader_admin_endpoint: Option<String>,
},
Unsupported,
NotMember(u64),
NotCaughtUp(u64),
WouldLoseQuorum,
Timeout,
Driver(String),
MembersBelowTarget {
target: u8,
incapable: Vec<(u64, u8)>,
},
TargetOutOfRange {
target: u8,
min: u8,
max: u8,
},
MembershipChangedSinceGate {
target: u8,
},
}Expand description
Membership-admin failure modes.
Variants§
NotLeader
Mutating op reached a follower; leader_admin_endpoint is the leader’s
admin port when one is known.
Unsupported
This driver does not support runtime membership changes.
NotMember(u64)
The referenced node is not a current member.
NotCaughtUp(u64)
A learner was asked to be promoted but had not caught up.
WouldLoseQuorum
The change would drop the cluster below a viable quorum.
Timeout
The change did not commit within the deadline.
Driver(String)
Wrapped driver error.
MembersBelowTarget
Format-activation gate rejection: at least one member can’t read the
target. incapable lists (node_id, max_readable_version).
TargetOutOfRange
Format-activation target outside local binary’s readable range.
MembershipChangedSinceGate
Format-activation apply-keyed no-op: membership changed since gate.
Trait Implementations§
Source§impl Debug for AdminError
impl Debug for AdminError
Source§impl Display for AdminError
impl Display for AdminError
Source§impl Error for AdminError
impl Error for AdminError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for AdminError
impl RefUnwindSafe for AdminError
impl Send for AdminError
impl Sync for AdminError
impl Unpin for AdminError
impl UnsafeUnpin for AdminError
impl UnwindSafe for AdminError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request