Struct openraft::error::InProgress
source · pub struct InProgress<NID: NodeId> {
pub committed: Option<LogId<NID>>,
pub membership_log_id: Option<LogId<NID>>,
}
Fields§
§committed: Option<LogId<NID>>
§membership_log_id: Option<LogId<NID>>
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for InProgress<NID>
impl<NID: Clone + NodeId> Clone for InProgress<NID>
source§fn clone(&self) -> InProgress<NID>
fn clone(&self) -> InProgress<NID>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<NID: NodeId> Error for InProgress<NID>where
Self: Debug + Display,
impl<NID: NodeId> Error for InProgress<NID>where Self: Debug + Display,
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<NID: NodeId> From<InProgress<NID>> for ChangeMembershipError<NID>
impl<NID: NodeId> From<InProgress<NID>> for ChangeMembershipError<NID>
source§fn from(source: InProgress<NID>) -> Self
fn from(source: InProgress<NID>) -> Self
Converts to this type from the input type.
source§impl<NID: PartialEq + NodeId> PartialEq<InProgress<NID>> for InProgress<NID>
impl<NID: PartialEq + NodeId> PartialEq<InProgress<NID>> for InProgress<NID>
source§fn eq(&self, other: &InProgress<NID>) -> bool
fn eq(&self, other: &InProgress<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<NID: Eq + NodeId> Eq for InProgress<NID>
impl<NID: NodeId> StructuralEq for InProgress<NID>
impl<NID: NodeId> StructuralPartialEq for InProgress<NID>
Auto Trait Implementations§
impl<NID> RefUnwindSafe for InProgress<NID>where NID: RefUnwindSafe,
impl<NID> Send for InProgress<NID>
impl<NID> Sync for InProgress<NID>
impl<NID> Unpin for InProgress<NID>where NID: Unpin,
impl<NID> UnwindSafe for InProgress<NID>where NID: UnwindSafe,
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.