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<'de, NID: NodeId> Deserialize<'de> for NotAllowed<NID>
impl<'de, NID: NodeId> Deserialize<'de> for NotAllowed<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 NotAllowed<NID>
impl<NID: NodeId> Display for NotAllowed<NID>
source§impl<NID: NodeId> Error for NotAllowed<NID>
impl<NID: NodeId> Error for NotAllowed<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, N> From<NotAllowed<NID>> for InitializeError<NID, N>
impl<NID, N> From<NotAllowed<NID>> for InitializeError<NID, N>
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 for NotAllowed<NID>
impl<NID: PartialEq + NodeId> PartialEq 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: NodeId> Serialize for NotAllowed<NID>
impl<NID: NodeId> Serialize for NotAllowed<NID>
source§impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>
impl<NID: Eq + NodeId> Eq for NotAllowed<NID>
impl<NID: NodeId> StructuralPartialEq for NotAllowed<NID>
Auto Trait Implementations§
impl<NID> Freeze for NotAllowed<NID>where
NID: Freeze,
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<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