Trait bao_tree::io::sync::OutboardMut
source · pub trait OutboardMut: Outboard {
// Required methods
fn set_size(&mut self, len: ByteNum) -> Result<()>;
fn save(&mut self, node: TreeNode, hash_pair: &(Hash, Hash)) -> Result<()>;
}Expand description
A mutable outboard.
This trait extends Outboard with methods to save a hash pair for a node and to set the length of the data file.
This trait can be used to incrementally save an outboard when receiving data. If you want to just ignore outboard data, there is a special placeholder outboard implementation super::outboard::EmptyOutboard.