#[repr(u8)]
pub enum ProtocolId {
ConsensusRpc,
ConsensusDirectSend,
MempoolDirectSend,
StateSyncDirectSend,
DiscoveryDirectSend,
HealthCheckerRpc,
ConsensusDirectSendJSON,
}
Expand description
Unique identifier associated with each application protocol.
Variants§
ConsensusRpc
ConsensusDirectSend
MempoolDirectSend
StateSyncDirectSend
DiscoveryDirectSend
HealthCheckerRpc
ConsensusDirectSendJSON
Implementations§
Trait Implementations§
source§impl Arbitrary for ProtocolId
impl Arbitrary for ProtocolId
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>), (u32, Arc<fn() -> ProtocolId>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for ProtocolId
impl Clone for ProtocolId
source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
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 ProtocolId
impl Debug for ProtocolId
source§impl<'de> Deserialize<'de> for ProtocolId
impl<'de> Deserialize<'de> for ProtocolId
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 Display for ProtocolId
impl Display for ProtocolId
source§impl Hash for ProtocolId
impl Hash for ProtocolId
source§impl PartialEq<ProtocolId> for ProtocolId
impl PartialEq<ProtocolId> for ProtocolId
source§fn eq(&self, other: &ProtocolId) -> bool
fn eq(&self, other: &ProtocolId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProtocolId
impl Serialize for ProtocolId
impl Copy for ProtocolId
impl Eq for ProtocolId
impl StructuralEq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnwindSafe for ProtocolId
Blanket Implementations§
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.