Skip to main content

RuntimeHandle

Trait RuntimeHandle 

Source
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§

Source

fn send_patch(&self, patch: RuntimePatch)

Send a patch to the runtime

Source

fn request_state(&self) -> RuntimeStateSnapshot

Request current state from the runtime

Source

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".

Implementors§