Struct sn_messaging::section_info::SectionInfo [−][src]
pub struct SectionInfo { pub prefix: Prefix, pub pk_set: ReplicaPublicKeySet, pub elders: BTreeMap<XorName, SocketAddr>, pub joins_allowed: bool, }
Expand description
All the info a client needs about their section
Fields
prefix: Prefix
Prefix of the section.
pk_set: ReplicaPublicKeySet
Public key set of the section.
elders: BTreeMap<XorName, SocketAddr>
Section elders.
joins_allowed: bool
Whether the section is allowed to taking new joining node.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SectionInfo
impl Send for SectionInfo
impl Sync for SectionInfo
impl Unpin for SectionInfo
impl UnwindSafe for SectionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V