Enum rings_node::prelude::vnode::VNodeOperation
source · pub enum VNodeOperation {
Overwrite(VirtualNode),
Extend(VirtualNode),
Touch(VirtualNode),
JoinSubring(String, Did),
}Expand description
VNode Operations
Variants§
Overwrite(VirtualNode)
Create or update a VirtualNode
Extend(VirtualNode)
Extend data to a Data type VirtualNode. This operation will create VirtualNode if it’s not existed.
Touch(VirtualNode)
Extend data to a Data type VirtualNode uniquely. If any element is already existed, move it to the end of the data vector. This operation will create VirtualNode if it’s not existed.
JoinSubring(String, Did)
Join subring.
Implementations§
Trait Implementations§
source§impl Clone for VNodeOperation
impl Clone for VNodeOperation
source§fn clone(&self) -> VNodeOperation
fn clone(&self) -> VNodeOperation
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 VNodeOperation
impl Debug for VNodeOperation
source§impl<'de> Deserialize<'de> for VNodeOperation
impl<'de> Deserialize<'de> for VNodeOperation
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<VNodeOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<VNodeOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HandleMsg<VNodeOperation> for MessageHandler
impl HandleMsg<VNodeOperation> for MessageHandler
source§fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>,
msg: &'life2 VNodeOperation
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MessageHandler: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>,
msg: &'life2 VNodeOperation
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MessageHandler: 'async_trait,
Message handler.
source§impl PartialEq<VNodeOperation> for VNodeOperation
impl PartialEq<VNodeOperation> for VNodeOperation
source§fn eq(&self, other: &VNodeOperation) -> bool
fn eq(&self, other: &VNodeOperation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for VNodeOperation
impl Serialize for VNodeOperation
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for VNodeOperation
impl StructuralEq for VNodeOperation
impl StructuralPartialEq for VNodeOperation
Auto Trait Implementations§
impl RefUnwindSafe for VNodeOperation
impl Send for VNodeOperation
impl Sync for VNodeOperation
impl Unpin for VNodeOperation
impl UnwindSafe for VNodeOperation
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.