pub enum BaseTopic {
Show 15 variants
Transactions,
UnsignedTransactions,
RewardsTransactions,
ShardBlocks,
MiniBlocks,
PeerChangeBlockBodies,
MetachainBlocks,
AccountTrieNodes,
ValidatorTrieNodes,
Consensus,
HeartbeatV2,
PeerAuthentication,
Connection,
ValidatorInfo,
EquivalentProofs,
}Expand description
Enumeration of all gossip topic families used by MultiversX nodes.
Variants§
Transactions
Regular user-submitted transactions
UnsignedTransactions
Unsigned transactions (smart contract results)
RewardsTransactions
Staking/delegation reward transactions
ShardBlocks
Block headers for shard chains
MiniBlocks
Transaction batch miniblocks
PeerChangeBlockBodies
Peer list change notifications
MetachainBlocks
Metachain block headers
AccountTrieNodes
Account state trie synchronization
ValidatorTrieNodes
Validator state trie synchronization
Consensus
Consensus protocol messages
HeartbeatV2
Node heartbeat/health messages
PeerAuthentication
P2P peer authentication handshake
Connection
P2P connection control messages
ValidatorInfo
Validator set and rating info
EquivalentProofs
Equivocation proofs for slashing
Implementations§
Source§impl BaseTopic
impl BaseTopic
Sourcepub const fn base_name(self) -> &'static str
pub const fn base_name(self) -> &'static str
Returns the canonical base name used in the gossip topic.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Attempts to resolve a base topic by its canonical name.
Sourcepub fn classify_topic(topic: &str) -> Option<(Self, &str)>
pub fn classify_topic(topic: &str) -> Option<(Self, &str)>
Splits a full topic name into its base component and suffix (if any).
Trait Implementations§
impl Copy for BaseTopic
impl Eq for BaseTopic
impl StructuralPartialEq for BaseTopic
Auto Trait Implementations§
impl Freeze for BaseTopic
impl RefUnwindSafe for BaseTopic
impl Send for BaseTopic
impl Sync for BaseTopic
impl Unpin for BaseTopic
impl UnsafeUnpin for BaseTopic
impl UnwindSafe for BaseTopic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more