referrerpolicy=no-referrer-when-downgrade

MutateDescriptorV2

Trait MutateDescriptorV2 

Source
pub trait MutateDescriptorV2<H> {
Show 13 methods // Required methods fn set_relay_parent(&mut self, relay_parent: H); fn set_para_id(&mut self, para_id: Id); fn set_pov_hash(&mut self, pov_hash: Hash); fn set_version(&mut self, version: u8); fn set_persisted_validation_data_hash( &mut self, persisted_validation_data_hash: Hash, ); fn set_validation_code_hash( &mut self, validation_code_hash: ValidationCodeHash, ); fn set_erasure_root(&mut self, erasure_root: Hash); fn set_para_head(&mut self, para_head: Hash); fn set_core_index(&mut self, core_index: CoreIndex); fn set_session_index(&mut self, session_index: SessionIndex); fn set_reserved2(&mut self, reserved2: [u8; 32]); fn set_scheduling_parent(&mut self, scheduling_parent: H); fn set_scheduling_session_offset(&mut self, offset: u8);
}
Expand description

A trait to allow changing the descriptor field values in tests.

Required Methods§

Source

fn set_relay_parent(&mut self, relay_parent: H)

Set the relay parent of the descriptor.

Source

fn set_para_id(&mut self, para_id: Id)

Set the ParaId of the descriptor.

Source

fn set_pov_hash(&mut self, pov_hash: Hash)

Set the PoV hash of the descriptor.

Source

fn set_version(&mut self, version: u8)

Set the raw version field of the descriptor.

Source

fn set_persisted_validation_data_hash( &mut self, persisted_validation_data_hash: Hash, )

Set the PVD of the descriptor.

Source

fn set_validation_code_hash(&mut self, validation_code_hash: ValidationCodeHash)

Set the validation code hash of the descriptor.

Source

fn set_erasure_root(&mut self, erasure_root: Hash)

Set the erasure root of the descriptor.

Source

fn set_para_head(&mut self, para_head: Hash)

Set the para head of the descriptor.

Source

fn set_core_index(&mut self, core_index: CoreIndex)

Set the core index of the descriptor.

Source

fn set_session_index(&mut self, session_index: SessionIndex)

Set the session index of the descriptor.

Source

fn set_reserved2(&mut self, reserved2: [u8; 32])

Set the reserved2 field of the descriptor.

Source

fn set_scheduling_parent(&mut self, scheduling_parent: H)

Set the scheduling parent of the descriptor.

Source

fn set_scheduling_session_offset(&mut self, offset: u8)

Set the scheduling session offset of the descriptor.

Implementors§

Source§

impl<H> MutateDescriptorV2<H> for CandidateDescriptorV2<H>

Available on crate feature test only.