Enum bee_message::payload::transaction::Essence
source · pub enum Essence {
Regular(RegularEssence),
}Expand description
A generic essence that can represent different types defining transaction essences.
Variants§
Regular(RegularEssence)
A regular transaction essence.
Implementations§
Trait Implementations§
source§impl From<RegularEssence> for Essence
impl From<RegularEssence> for Essence
source§fn from(essence: RegularEssence) -> Self
fn from(essence: RegularEssence) -> Self
Converts to this type from the input type.
source§impl Packable for Essence
impl Packable for Essence
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.