Enum chain_impl_mockchain::fragment::Fragment
source · pub enum Fragment {
Show 16 variants
Initial(ConfigParams),
OldUtxoDeclaration(UtxoDeclaration),
Transaction(Transaction<NoExtra>),
OwnerStakeDelegation(Transaction<OwnerStakeDelegation>),
StakeDelegation(Transaction<StakeDelegation>),
PoolRegistration(Transaction<PoolRegistration>),
PoolRetirement(Transaction<PoolRetirement>),
PoolUpdate(Transaction<PoolUpdate>),
UpdateProposal(Transaction<UpdateProposal>),
UpdateVote(Transaction<UpdateVote>),
VotePlan(Transaction<VotePlan>),
VoteCast(Transaction<VoteCast>),
VoteTally(Transaction<VoteTally>),
MintToken(Transaction<MintToken>),
Evm(EvmTransaction),
EvmMapping(Transaction<EvmMapping>),
}
Expand description
All possible messages recordable in the content
Variants§
Initial(ConfigParams)
OldUtxoDeclaration(UtxoDeclaration)
Transaction(Transaction<NoExtra>)
OwnerStakeDelegation(Transaction<OwnerStakeDelegation>)
StakeDelegation(Transaction<StakeDelegation>)
PoolRegistration(Transaction<PoolRegistration>)
PoolRetirement(Transaction<PoolRetirement>)
PoolUpdate(Transaction<PoolUpdate>)
UpdateProposal(Transaction<UpdateProposal>)
UpdateVote(Transaction<UpdateVote>)
VotePlan(Transaction<VotePlan>)
VoteCast(Transaction<VoteCast>)
VoteTally(Transaction<VoteTally>)
MintToken(Transaction<MintToken>)
Evm(EvmTransaction)
EvmMapping(Transaction<EvmMapping>)
Implementations§
source§impl Fragment
impl Fragment
sourcepub(crate) fn get_tag(&self) -> FragmentTag
pub(crate) fn get_tag(&self) -> FragmentTag
Return the tag associated with the Message
sourcepub fn hash(&self) -> FragmentId
pub fn hash(&self) -> FragmentId
The ID of a message is a hash of its serialization without the size.
Trait Implementations§
source§impl Deserialize for Fragment
impl Deserialize for Fragment
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>
fn deserialize_validate<R>(codec: &mut Codec<R>) -> Result<(), ReadError>where R: Read,
source§impl PartialEq<Fragment> for Fragment
impl PartialEq<Fragment> for Fragment
source§impl Serialize for Fragment
impl Serialize for Fragment
impl Eq for Fragment
Auto Trait Implementations§
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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