pub struct AccumulateEngine<A: AccumulateOps> { /* private fields */ }Expand description
An engine that drives execution of accumulate and on_transfer CoreVM service entry points.
Implementations§
Source§impl<A: AccumulateOps> AccumulateEngine<A>
impl<A: AccumulateOps> AccumulateEngine<A>
Sourcepub fn new(ops: A) -> Self
pub fn new(ops: A) -> Self
Create new engine with the specified accumulation API implementation.
Sourcepub fn run(
&mut self,
items: &[AccumulateItem],
) -> Vec<Result<(), AccumulationError<A::Error>>>
pub fn run( &mut self, items: &[AccumulateItem], ) -> Vec<Result<(), AccumulationError<A::Error>>>
Accumulate the specified items.
Returns accumulation result for each item.
Sourcepub fn into_inner(self) -> A
pub fn into_inner(self) -> A
Get the underlying accumulation API implementation.
Auto Trait Implementations§
impl<A> Freeze for AccumulateEngine<A>where
A: Freeze,
impl<A> RefUnwindSafe for AccumulateEngine<A>where
A: RefUnwindSafe,
impl<A> Send for AccumulateEngine<A>where
A: Send,
impl<A> Sync for AccumulateEngine<A>where
A: Sync,
impl<A> Unpin for AccumulateEngine<A>where
A: Unpin,
impl<A> UnwindSafe for AccumulateEngine<A>where
A: UnwindSafe,
Blanket Implementations§
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