Struct ckb_vm::machine::DefaultMachineBuilder
source · pub struct DefaultMachineBuilder<Inner> { /* private fields */ }
Implementations§
source§impl<Inner> DefaultMachineBuilder<Inner>
impl<Inner> DefaultMachineBuilder<Inner>
pub fn new(inner: Inner) -> Self
pub fn instruction_cycle_func( self, instruction_cycle_func: Box<InstructionCycleFunc>, ) -> Self
pub fn syscall(self, syscall: Box<dyn Syscalls<Inner>>) -> Self
pub fn pause(self, pause: Pause) -> Self
pub fn debugger(self, debugger: Box<dyn Debugger<Inner>>) -> Self
pub fn build(self) -> DefaultMachine<Inner>
Auto Trait Implementations§
impl<Inner> Freeze for DefaultMachineBuilder<Inner>where
Inner: Freeze,
impl<Inner> !RefUnwindSafe for DefaultMachineBuilder<Inner>
impl<Inner> Send for DefaultMachineBuilder<Inner>where
Inner: Send,
impl<Inner> Sync for DefaultMachineBuilder<Inner>where
Inner: Sync,
impl<Inner> Unpin for DefaultMachineBuilder<Inner>where
Inner: Unpin,
impl<Inner> !UnwindSafe for DefaultMachineBuilder<Inner>
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