Trait Task

Source
pub trait Task
where Self: Serialize + DeserializeOwned + Debug + Send + Sync + 'static, Self::Output: Serialize + DeserializeOwned + Debug + Send + Sync + 'static,
{ type Output; const STAGE: &'static str; }
Expand description

Task of a specific stage, with Output & Error defined

Required Associated Constants§

Source

const STAGE: &'static str

The stage name.

Required Associated Types§

Source

type Output

The output type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Task for AddPieces

Source§

const STAGE: &'static str = STAGE_NAME_ADD_PIECES

Source§

type Output = Vec<PieceInfo>

Source§

impl Task for C2

Source§

const STAGE: &'static str = STAGE_NAME_C2

Source§

type Output = SealCommitPhase2Output

Source§

impl Task for PC1

Source§

const STAGE: &'static str = STAGE_NAME_PC1

Source§

type Output = SealPreCommitPhase1Output

Source§

impl Task for PC2

Source§

const STAGE: &'static str = STAGE_NAME_PC2

Source§

type Output = SealPreCommitPhase2Output

Source§

impl Task for SnapEncode

Source§

const STAGE: &'static str = STAGE_NAME_SNAP_ENCODE

Source§

type Output = SnapEncodeOutput

Source§

impl Task for SnapProve

Source§

const STAGE: &'static str = STAGE_NAME_SNAP_PROVE

Source§

type Output = Vec<u8>

Source§

impl Task for Transfer

Source§

const STAGE: &'static str = STAGE_NAME_TRANSFER

Source§

type Output = bool

Source§

impl Task for TreeD

Source§

const STAGE: &'static str = STAGE_NAME_TREED

Source§

type Output = bool

Source§

impl Task for WindowPoSt

Source§

const STAGE: &'static str = STAGE_NAME_WINDOW_POST

Source§

type Output = WindowPoStOutput

Source§

impl Task for WinningPoSt

Source§

const STAGE: &'static str = STAGE_NAME_WINNING_POST

Source§

type Output = WinningPoStOutput