[][src]Enum exonum::messages::CoreMessage

#[non_exhaustive]pub enum CoreMessage {
    AnyTx(AnyTx),
    Precommit(Precommit),
}

Subset of Exonum messages defined in the Exonum core.

This type is intentionally kept as minimal as possible to ensure compatibility even if the consensus details change. Most of consensus messages are defined separately in the exonum-node crate; they are not public.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AnyTx(AnyTx)

Transaction message.

Precommit(Precommit)

Precommit message.

Trait Implementations

impl BinaryValue for CoreMessage[src]

impl Clone for CoreMessage[src]

impl Debug for CoreMessage[src]

impl Eq for CoreMessage[src]

impl From<AnyTx> for CoreMessage[src]

impl From<Precommit> for CoreMessage[src]

impl ObjectHash for CoreMessage[src]

impl Ord for CoreMessage[src]

impl PartialEq<CoreMessage> for CoreMessage[src]

impl PartialOrd<CoreMessage> for CoreMessage[src]

impl ProtobufConvert for CoreMessage[src]

type ProtoStruct = CoreMessage

Type generated from the Protobuf definition.

impl StructuralEq for CoreMessage[src]

impl StructuralPartialEq for CoreMessage[src]

impl TryFrom<CoreMessage> for AnyTx[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<CoreMessage> for Precommit[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<SignedMessage> for CoreMessage[src]

type Error = Error

The type returned in the event of a conversion error.

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> From<T> for T[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,