[][src]Enum tari_p2p::tari_message::TariMessageType

#[repr(i32)]pub enum TariMessageType {
    None,
    PingPong,
    NewTransaction,
    NewBlock,
    SenderPartialTransaction,
    ReceiverPartialTransactionReply,
    BaseNodeRequest,
    BaseNodeResponse,
    MempoolRequest,
    MempoolResponse,
    TransactionFinalized,
    Text,
    TextAck,
}

A tari message type is an immutable 32-bit signed integer indicating the type of message being received or sent over the network.

Variants

None
PingPong
NewTransaction
NewBlock
SenderPartialTransaction
ReceiverPartialTransactionReply
BaseNodeRequest
BaseNodeResponse
MempoolRequest
MempoolResponse
TransactionFinalized

-- DAN Messages --

Text
TextAck

Implementations

impl TariMessageType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of TariMessageType.

pub fn from_i32(value: i32) -> Option<TariMessageType>[src]

Converts an i32 to a TariMessageType, or None if value is not a valid variant.

Trait Implementations

impl Clone for TariMessageType[src]

impl Copy for TariMessageType[src]

impl Debug for TariMessageType[src]

impl Default for TariMessageType[src]

impl Eq for TariMessageType[src]

impl From<TariMessageType> for i32[src]

impl Hash for TariMessageType[src]

impl Ord for TariMessageType[src]

impl PartialEq<TariMessageType> for TariMessageType[src]

impl PartialOrd<TariMessageType> for TariMessageType[src]

impl StructuralEq for TariMessageType[src]

impl StructuralPartialEq for TariMessageType[src]

impl ToProtoEnum for TariMessageType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> IntoSql for T

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,