pub struct SmartModuleChainBuilder { /* private fields */ }Expand description
Building SmartModule
Implementations§
source§impl SmartModuleChainBuilder
impl SmartModuleChainBuilder
sourcepub fn add_smart_module(&mut self, config: SmartModuleConfig, bytes: Vec<u8>)
pub fn add_smart_module(&mut self, config: SmartModuleConfig, bytes: Vec<u8>)
Add SmartModule with a single transform and init
sourcepub fn initialize(
self,
engine: &SmartEngine
) -> Result<SmartModuleChainInstance>
pub fn initialize( self, engine: &SmartEngine ) -> Result<SmartModuleChainInstance>
stop adding smartmodule and return SmartModuleChain that can be executed
Trait Implementations§
source§impl Default for SmartModuleChainBuilder
impl Default for SmartModuleChainBuilder
source§fn default() -> SmartModuleChainBuilder
fn default() -> SmartModuleChainBuilder
Returns the “default value” for a type. Read more
source§impl<T: Into<Vec<u8>>> From<(SmartModuleConfig, T)> for SmartModuleChainBuilder
impl<T: Into<Vec<u8>>> From<(SmartModuleConfig, T)> for SmartModuleChainBuilder
source§fn from(pair: (SmartModuleConfig, T)) -> Self
fn from(pair: (SmartModuleConfig, T)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SmartModuleChainBuilder
impl Send for SmartModuleChainBuilder
impl Sync for SmartModuleChainBuilder
impl Unpin for SmartModuleChainBuilder
impl UnwindSafe for SmartModuleChainBuilder
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