Enum rings_node::prelude::message::RelayMethod
source · pub enum RelayMethod {
SEND,
REPORT,
}Expand description
MessageRelay divides messages into two types by method: SEND and REPORT.
And will enable different behaviors when handling SEND and REPORT messages.
Variants§
SEND
When a node want to send message to another node, it will send a message with SEND method.
REPORT
A node that got a SEND message will either forward it to another node or respond with a REPORT message.
Trait Implementations§
source§impl Clone for RelayMethod
impl Clone for RelayMethod
source§fn clone(&self) -> RelayMethod
fn clone(&self) -> RelayMethod
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 RelayMethod
impl Debug for RelayMethod
source§impl<'de> Deserialize<'de> for RelayMethod
impl<'de> Deserialize<'de> for RelayMethod
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RelayMethod> for RelayMethod
impl PartialEq<RelayMethod> for RelayMethod
source§fn eq(&self, other: &RelayMethod) -> bool
fn eq(&self, other: &RelayMethod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RelayMethod
impl Serialize for RelayMethod
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 RelayMethod
impl StructuralEq for RelayMethod
impl StructuralPartialEq for RelayMethod
Auto Trait Implementations§
impl RefUnwindSafe for RelayMethod
impl Send for RelayMethod
impl Sync for RelayMethod
impl Unpin for RelayMethod
impl UnwindSafe for RelayMethod
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.