Skip to main content

RuntimeObjectService

Trait RuntimeObjectService 

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

Source

fn class(&self, name: &str) -> Option<RuntimeClass>

Source

fn register_class(&self, class: RuntimeClass) -> Result<(), RuntimeError>

Source

fn static_property(&self, class: &str, property: &str) -> Option<Value>

Source

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

Implementors§