pub trait RuntimeHandle: Send + Sync {
// Required methods
fn send_patch(&self, patch: RuntimePatch);
fn request_state(&self) -> RuntimeStateSnapshot;
fn send_event(&self, event: RuntimeEvent);
}Expand description
Abstract runtime handle trait
Required Methods§
Sourcefn send_patch(&self, patch: RuntimePatch)
fn send_patch(&self, patch: RuntimePatch)
Send a patch to the runtime
Sourcefn request_state(&self) -> RuntimeStateSnapshot
fn request_state(&self) -> RuntimeStateSnapshot
Request current state from the runtime
Sourcefn send_event(&self, event: RuntimeEvent)
fn send_event(&self, event: RuntimeEvent)
Send an event to the runtime
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".