#[non_exhaustive]
pub enum FindSuccessorReportHandler {
None,
Connect,
FixFingerTable,
SyncStorage,
CustomCallback(u8),
}Expand description
MessageType enum handle when meet the last node.
- None: do nothing but return.
- Connect: connect origin node.
- FixFingerTable: update fingers table.
- SyncStorage: syncing data in virtual node.
- CustomCallback: custom callback handle by
custom_messagemethod.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for FindSuccessorReportHandler
impl Clone for FindSuccessorReportHandler
source§fn clone(&self) -> FindSuccessorReportHandler
fn clone(&self) -> FindSuccessorReportHandler
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 Debug for FindSuccessorReportHandler
impl Debug for FindSuccessorReportHandler
source§impl<'de> Deserialize<'de> for FindSuccessorReportHandler
impl<'de> Deserialize<'de> for FindSuccessorReportHandler
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 PartialEq<FindSuccessorReportHandler> for FindSuccessorReportHandler
impl PartialEq<FindSuccessorReportHandler> for FindSuccessorReportHandler
source§fn eq(&self, other: &FindSuccessorReportHandler) -> bool
fn eq(&self, other: &FindSuccessorReportHandler) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for FindSuccessorReportHandler
impl StructuralEq for FindSuccessorReportHandler
impl StructuralPartialEq for FindSuccessorReportHandler
Auto Trait Implementations§
impl RefUnwindSafe for FindSuccessorReportHandler
impl Send for FindSuccessorReportHandler
impl Sync for FindSuccessorReportHandler
impl Unpin for FindSuccessorReportHandler
impl UnwindSafe for FindSuccessorReportHandler
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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.