pub trait RuntimeObjectService {
// Required methods
fn class(&self, name: &str) -> Option<RuntimeClass>;
fn register_class(&self, class: RuntimeClass) -> Result<(), RuntimeError>;
fn static_property(&self, class: &str, property: &str) -> Option<Value>;
fn set_static_property(
&self,
class: &str,
property: &str,
value: Value,
) -> Result<(), RuntimeError>;
}Required Methods§
fn class(&self, name: &str) -> Option<RuntimeClass>
fn register_class(&self, class: RuntimeClass) -> Result<(), RuntimeError>
fn static_property(&self, class: &str, property: &str) -> Option<Value>
fn set_static_property( &self, class: &str, property: &str, value: Value, ) -> Result<(), RuntimeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".