#[non_exhaustive]pub enum CoreMessage {
AnyTx(AnyTx),
Precommit(Precommit),
}
Expand description
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)§
This enum is marked as 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.
Trait Implementations§
Source§impl BinaryValue for CoreMessage
impl BinaryValue for CoreMessage
Source§impl Clone for CoreMessage
impl Clone for CoreMessage
Source§fn clone(&self) -> CoreMessage
fn clone(&self) -> CoreMessage
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 CoreMessage
impl Debug for CoreMessage
Source§impl From<AnyTx> for CoreMessage
impl From<AnyTx> for CoreMessage
Source§impl From<Precommit> for CoreMessage
impl From<Precommit> for CoreMessage
Source§impl ObjectHash for CoreMessage
impl ObjectHash for CoreMessage
Source§fn object_hash(&self) -> Hash
fn object_hash(&self) -> Hash
Returns a hash of the value. Read more
Source§impl Ord for CoreMessage
impl Ord for CoreMessage
Source§fn cmp(&self, other: &CoreMessage) -> Ordering
fn cmp(&self, other: &CoreMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoreMessage
impl PartialEq for CoreMessage
Source§impl PartialOrd for CoreMessage
impl PartialOrd for CoreMessage
Source§impl ProtobufConvert for CoreMessage
impl ProtobufConvert for CoreMessage
Source§type ProtoStruct = CoreMessage
type ProtoStruct = CoreMessage
Type generated from the Protobuf definition.
Source§fn to_pb(&self) -> Self::ProtoStruct
fn to_pb(&self) -> Self::ProtoStruct
Performs conversion to the type generated from Protobuf.
Source§fn from_pb(pb: Self::ProtoStruct) -> Result<Self>
fn from_pb(pb: Self::ProtoStruct) -> Result<Self>
Performs conversion from the type generated from Protobuf.
Source§impl TryFrom<CoreMessage> for AnyTx
impl TryFrom<CoreMessage> for AnyTx
Source§impl TryFrom<CoreMessage> for Precommit
impl TryFrom<CoreMessage> for Precommit
Source§impl TryFrom<SignedMessage> for CoreMessage
impl TryFrom<SignedMessage> for CoreMessage
impl Eq for CoreMessage
impl StructuralPartialEq for CoreMessage
Auto Trait Implementations§
impl Freeze for CoreMessage
impl RefUnwindSafe for CoreMessage
impl Send for CoreMessage
impl Sync for CoreMessage
impl Unpin for CoreMessage
impl UnwindSafe for CoreMessage
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