Struct openraft::error::NotAllowed
source · pub struct NotAllowed<NID: NodeId> {
pub last_log_id: Option<LogId<NID>>,
pub vote: Vote<NID>,
}
Fields§
§last_log_id: Option<LogId<NID>>
§vote: Vote<NID>
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for NotAllowed<NID>
impl<NID: Clone + NodeId> Clone for NotAllowed<NID>
source§fn clone(&self) -> NotAllowed<NID>
fn clone(&self) -> NotAllowed<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> Display for NotAllowed<NID>where
Option<LogId<NID>>: Debug,
Vote<NID>: Display,
impl<NID: NodeId> Display for NotAllowed<NID>where Option<LogId<NID>>: Debug, Vote<NID>: Display,
source§impl<NID: NodeId> Error for NotAllowed<NID>where
Self: Debug + Display,
impl<NID: NodeId> Error for NotAllowed<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, N> From<NotAllowed<NID>> for InitializeError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<NotAllowed<NID>> for InitializeError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: NotAllowed<NID>) -> Self
fn from(source: NotAllowed<NID>) -> Self
Converts to this type from the input type.
source§impl<NID: PartialEq + NodeId> PartialEq<NotAllowed<NID>> for NotAllowed<NID>
impl<NID: PartialEq + NodeId> PartialEq<NotAllowed<NID>> for NotAllowed<NID>
source§fn eq(&self, other: &NotAllowed<NID>) -> bool
fn eq(&self, other: &NotAllowed<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>where NID: NodeId, N: Node,
impl<NID: Eq + NodeId> Eq for NotAllowed<NID>
impl<NID: NodeId> StructuralEq for NotAllowed<NID>
impl<NID: NodeId> StructuralPartialEq for NotAllowed<NID>
Auto Trait Implementations§
impl<NID> RefUnwindSafe for NotAllowed<NID>where NID: RefUnwindSafe,
impl<NID> Send for NotAllowed<NID>
impl<NID> Sync for NotAllowed<NID>
impl<NID> Unpin for NotAllowed<NID>where NID: Unpin,
impl<NID> UnwindSafe for NotAllowed<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.