referrerpolicy=no-referrer-when-downgrade

Trait MutateDescriptorV2

pub trait MutateDescriptorV2<H> {
    // 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: InternalVersion);
    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; 64]);
}
Expand description

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

Required Methods§

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)

Set the ParaId of the descriptor.

fn set_pov_hash(&mut self, pov_hash: H256)

Set the PoV hash of the descriptor.

fn set_version(&mut self, version: InternalVersion)

Set the version field of the descriptor.

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)

Set the validation code hash of the descriptor.

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)

Set the para head of the descriptor.

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)

Set the session index of the descriptor.

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

Set the reserved2 field of the descriptor.

Implementors§