pub struct SingleThreadedEngine { /* private fields */ }
Expand description
Creates single threaded execution environment for Blocks to be run on.
Each block would be executed inside a local task in the engine’s local context.
Implementations§
Trait Implementations§
Source§impl Default for SingleThreadedEngine
impl Default for SingleThreadedEngine
Source§impl Engine for SingleThreadedEngine
impl Engine for SingleThreadedEngine
Source§type Channel = Sender<EngineMessage<Sender<WatchMessage>>>
type Channel = Sender<EngineMessage<Sender<WatchMessage>>>
The type used to send messages to/from this engine.
Source§fn schedule<B: Block<Writer = Self::Writer, Reader = Self::Reader> + 'static>(
&mut self,
block: B,
)
fn schedule<B: Block<Writer = Self::Writer, Reader = Self::Reader> + 'static>( &mut self, block: B, )
Schedule a block to be executed by this engine.
This operation can be performed while the engine is running.
Source§fn load_blocks_and_links(
&mut self,
blocks: &[BlockData],
links: &[LinkData],
) -> Result<()>
fn load_blocks_and_links( &mut self, blocks: &[BlockData], links: &[LinkData], ) -> Result<()>
Load the blocks and links into the engine.
This operation should be performed before the engine is run.
Auto Trait Implementations§
impl !Freeze for SingleThreadedEngine
impl !RefUnwindSafe for SingleThreadedEngine
impl !Send for SingleThreadedEngine
impl !Sync for SingleThreadedEngine
impl Unpin for SingleThreadedEngine
impl !UnwindSafe for SingleThreadedEngine
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