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<'de, NID: NodeId> Deserialize<'de> for InProgress<NID>
impl<'de, NID: NodeId> Deserialize<'de> for InProgress<NID>
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
source§impl<NID: NodeId> Display for InProgress<NID>
impl<NID: NodeId> Display for InProgress<NID>
source§impl<NID: NodeId> Error for InProgress<NID>
impl<NID: NodeId> Error for InProgress<NID>
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 for InProgress<NID>
impl<NID: PartialEq + NodeId> PartialEq 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 ==
.source§impl<NID: NodeId> Serialize for InProgress<NID>
impl<NID: NodeId> Serialize for InProgress<NID>
impl<NID: Eq + NodeId> Eq for InProgress<NID>
impl<NID: NodeId> StructuralPartialEq for InProgress<NID>
Auto Trait Implementations§
impl<NID> Freeze for InProgress<NID>where
NID: Freeze,
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<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