Struct oasis_core_runtime::transaction::tree::Tree
source · pub struct Tree { /* private fields */ }
Expand description
A Merkle tree containing transaction artifacts.
Implementations§
source§impl Tree
impl Tree
sourcepub fn new(read_syncer: Box<dyn ReadSync>, io_root: Root) -> Self
pub fn new(read_syncer: Box<dyn ReadSync>, io_root: Root) -> Self
Create a new transaction artifacts tree.
sourcepub fn add_input(&mut self, input: Vec<u8>, batch_order: u32) -> Result<()>
pub fn add_input(&mut self, input: Vec<u8>, batch_order: u32) -> Result<()>
Add an input transaction artifact.
sourcepub fn add_output(
&mut self,
tx_hash: Hash,
output: Vec<u8>,
tags: Tags,
) -> Result<()>
pub fn add_output( &mut self, tx_hash: Hash, output: Vec<u8>, tags: Tags, ) -> Result<()>
Add an output transaction artifact.
Add block tags.
Auto Trait Implementations§
impl !Freeze for Tree
impl !RefUnwindSafe for Tree
impl Send for Tree
impl !Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more