Enum bee_message::payload::Payload [−][src]
#[non_exhaustive] pub enum Payload { Transaction(Box<TransactionPayload>), Milestone(Box<MilestonePayload>), Indexation(Box<IndexationPayload>), Receipt(Box<ReceiptPayload>), TreasuryTransaction(Box<TreasuryTransactionPayload>), }
A generic payload that can represent different types defining message payloads.
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.
Transaction(Box<TransactionPayload>)
A transaction payload.
Milestone(Box<MilestonePayload>)
A milestone payload.
Indexation(Box<IndexationPayload>)
An indexation payload.
Receipt(Box<ReceiptPayload>)
A receipt payload.
TreasuryTransaction(Box<TreasuryTransactionPayload>)
A treasury transaction payload.
Implementations
Trait Implementations
impl From<IndexationPayload> for Payload
[src]
impl From<IndexationPayload> for Payload
[src]fn from(payload: IndexationPayload) -> Self
[src]
impl From<MilestonePayload> for Payload
[src]
impl From<MilestonePayload> for Payload
[src]fn from(payload: MilestonePayload) -> Self
[src]
impl From<ReceiptPayload> for Payload
[src]
impl From<ReceiptPayload> for Payload
[src]fn from(payload: ReceiptPayload) -> Self
[src]
impl From<TransactionPayload> for Payload
[src]
impl From<TransactionPayload> for Payload
[src]fn from(payload: TransactionPayload) -> Self
[src]
impl From<TreasuryTransactionPayload> for Payload
[src]
impl From<TreasuryTransactionPayload> for Payload
[src]fn from(payload: TreasuryTransactionPayload) -> Self
[src]
impl Packable for Payload
[src]
impl Packable for Payload
[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize
[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>
[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
impl StructuralEq for Payload
[src]
impl StructuralEq for Payload
[src]impl StructuralPartialEq for Payload
[src]
impl StructuralPartialEq for Payload
[src]Auto Trait Implementations
impl RefUnwindSafe for Payload
impl RefUnwindSafe for Payload
impl UnwindSafe for Payload
impl UnwindSafe for Payload