Trait MutateDescriptorV2
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: H256);
fn set_version(&mut self, version: u8);
fn set_persisted_validation_data_hash(
&mut self,
persisted_validation_data_hash: H256,
);
fn set_validation_code_hash(
&mut self,
validation_code_hash: ValidationCodeHash,
);
fn set_erasure_root(&mut self, erasure_root: H256);
fn set_para_head(&mut self, para_head: H256);
fn set_core_index(&mut self, core_index: CoreIndex);
fn set_session_index(&mut self, session_index: u32);
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§
fn set_relay_parent(&mut self, relay_parent: H)
fn set_relay_parent(&mut self, relay_parent: H)
Set the relay parent of the descriptor.
fn set_para_id(&mut self, para_id: Id)
fn set_para_id(&mut self, para_id: Id)
Set the ParaId of the descriptor.
fn set_pov_hash(&mut self, pov_hash: H256)
fn set_pov_hash(&mut self, pov_hash: H256)
Set the PoV hash of the descriptor.
fn set_version(&mut self, version: u8)
fn set_version(&mut self, version: u8)
Set the raw version field of the descriptor.
fn set_persisted_validation_data_hash(
&mut self,
persisted_validation_data_hash: H256,
)
fn set_persisted_validation_data_hash( &mut self, persisted_validation_data_hash: H256, )
Set the PVD of the descriptor.
fn set_validation_code_hash(&mut self, validation_code_hash: ValidationCodeHash)
fn set_validation_code_hash(&mut self, validation_code_hash: ValidationCodeHash)
Set the validation code hash of the descriptor.
fn set_erasure_root(&mut self, erasure_root: H256)
fn set_erasure_root(&mut self, erasure_root: H256)
Set the erasure root of the descriptor.
fn set_para_head(&mut self, para_head: H256)
fn set_para_head(&mut self, para_head: H256)
Set the para head of the descriptor.
fn set_core_index(&mut self, core_index: CoreIndex)
fn set_core_index(&mut self, core_index: CoreIndex)
Set the core index of the descriptor.
fn set_session_index(&mut self, session_index: u32)
fn set_session_index(&mut self, session_index: u32)
Set the session index of the descriptor.
fn set_reserved2(&mut self, reserved2: [u8; 32])
fn set_reserved2(&mut self, reserved2: [u8; 32])
Set the reserved2 field of the descriptor.
fn set_scheduling_parent(&mut self, scheduling_parent: H)
fn set_scheduling_parent(&mut self, scheduling_parent: H)
Set the scheduling parent of the descriptor.
fn set_scheduling_session_offset(&mut self, offset: u8)
fn set_scheduling_session_offset(&mut self, offset: u8)
Set the scheduling session offset of the descriptor.
Implementors§
impl<H> MutateDescriptorV2<H> for CandidateDescriptorV2<H>
Available on crate feature
test only.