pub struct DevRuntimeController { /* private fields */ }Expand description
DevRuntimeController manages the connection to the runtime
Implementations§
Source§impl DevRuntimeController
impl DevRuntimeController
Sourcepub fn new(runtime: Arc<dyn RuntimeHandle>) -> Self
pub fn new(runtime: Arc<dyn RuntimeHandle>) -> Self
Create a new DevRuntimeController
Sourcepub fn apply_code_update(&mut self, compiled_artifact: CompiledArtifact)
pub fn apply_code_update(&mut self, compiled_artifact: CompiledArtifact)
Apply a code update by generating and sending a patch
Sourcepub fn inject_agent_stream(&self, stream: Vec<RuntimeEvent>)
pub fn inject_agent_stream(&self, stream: Vec<RuntimeEvent>)
Inject an agent stream into the runtime
Auto Trait Implementations§
impl Freeze for DevRuntimeController
impl !RefUnwindSafe for DevRuntimeController
impl Send for DevRuntimeController
impl Sync for DevRuntimeController
impl Unpin for DevRuntimeController
impl UnsafeUnpin for DevRuntimeController
impl !UnwindSafe for DevRuntimeController
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