Struct rings_core::dht::subring::Subring
source · pub struct Subring {
pub name: String,
pub finger: FingerTable,
pub creator: Did,
}Expand description
A Subring is like a [PeerRing] without storage functional.
Subring also have two extra fields: name and creator.
Subring can be stored on the a [PeerRing].
The did of a subring is the hash of its name.
Fields§
§name: Stringname of subring
finger: FingerTablefinger table
creator: Didcreator
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Subring
impl<'de> Deserialize<'de> for Subring
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<Subring> for Subring
impl PartialEq<Subring> for Subring
source§impl TryFrom<Subring> for VirtualNode
impl TryFrom<Subring> for VirtualNode
source§impl TryFrom<VirtualNode> for Subring
impl TryFrom<VirtualNode> for Subring
impl Eq for Subring
impl StructuralEq for Subring
impl StructuralPartialEq for Subring
Auto Trait Implementations§
impl RefUnwindSafe for Subring
impl Send for Subring
impl Sync for Subring
impl Unpin for Subring
impl UnwindSafe for Subring
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.