-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
//! This module contains common traits for stages within the derivation pipeline. | ||
use crate::types::{BlockInfo, SystemConfig}; | ||
use alloc::boxed::Box; | ||
use anyhow::Result; | ||
use async_trait::async_trait; | ||
|
||
/// Describes the functionality fo a resettable stage within the derivation pipeline. | ||
#[async_trait] | ||
pub trait ResettableStage { | ||
/// Resets the derivation stage to its initial state. | ||
fn reset(&mut self, base: BlockInfo, cfg: SystemConfig) -> Result<()>; | ||
async fn reset(&mut self, base: BlockInfo, cfg: SystemConfig) -> Result<()>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters