pub trait Block:
BlockName
+ BlockEOF
+ Send {
// Required method
fn work(&mut self) -> Result<BlockRet<'_>>;
}Expand description
Block trait. Must be implemented for all blocks.
Simpler blocks can use macros to avoid needing to implement work().