Struct openraft::error::LearnerNotFound
source · pub struct LearnerNotFound<NID: NodeId> {
pub node_id: NID,
}
Fields§
§node_id: NID
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for LearnerNotFound<NID>
impl<NID: Clone + NodeId> Clone for LearnerNotFound<NID>
source§fn clone(&self) -> LearnerNotFound<NID>
fn clone(&self) -> LearnerNotFound<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 LearnerNotFound<NID>
impl<'de, NID: NodeId> Deserialize<'de> for LearnerNotFound<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> Display for LearnerNotFound<NID>
impl<NID> Display for LearnerNotFound<NID>
source§impl<NID: NodeId> Error for LearnerNotFound<NID>
impl<NID: NodeId> Error for LearnerNotFound<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<LearnerNotFound<NID>> for ChangeMembershipError<NID>
impl<NID: NodeId> From<LearnerNotFound<NID>> for ChangeMembershipError<NID>
source§fn from(source: LearnerNotFound<NID>) -> Self
fn from(source: LearnerNotFound<NID>) -> Self
Converts to this type from the input type.
source§impl<NID: PartialEq + NodeId> PartialEq for LearnerNotFound<NID>
impl<NID: PartialEq + NodeId> PartialEq for LearnerNotFound<NID>
source§fn eq(&self, other: &LearnerNotFound<NID>) -> bool
fn eq(&self, other: &LearnerNotFound<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID: NodeId> Serialize for LearnerNotFound<NID>
impl<NID: NodeId> Serialize for LearnerNotFound<NID>
impl<NID: Eq + NodeId> Eq for LearnerNotFound<NID>
impl<NID: NodeId> StructuralPartialEq for LearnerNotFound<NID>
Auto Trait Implementations§
impl<NID> Freeze for LearnerNotFound<NID>where
NID: Freeze,
impl<NID> RefUnwindSafe for LearnerNotFound<NID>where
NID: RefUnwindSafe,
impl<NID> Send for LearnerNotFound<NID>
impl<NID> Sync for LearnerNotFound<NID>
impl<NID> Unpin for LearnerNotFound<NID>where
NID: Unpin,
impl<NID> UnwindSafe for LearnerNotFound<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