pub struct CompiledEffectMachine { /* private fields */ }Expand description
Compiled effect machine — drives JIT-compiled freer-simple effect stacks.
The step/resume protocol:
- step() calls the compiled function, parses the result:
- Con with Val con_tag → Yield::Done(value)
- Con with E con_tag → Yield::Request(tag, request, continuation)
- resume(continuation, response) applies the continuation tree to the response and parses the resulting heap object.
Implementations§
Trait Implementations§
impl Send for CompiledEffectMachine
Auto Trait Implementations§
impl Freeze for CompiledEffectMachine
impl RefUnwindSafe for CompiledEffectMachine
impl !Sync for CompiledEffectMachine
impl Unpin for CompiledEffectMachine
impl UnsafeUnpin for CompiledEffectMachine
impl UnwindSafe for CompiledEffectMachine
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