Skip to main content

ObsPropertyActions

Trait ObsPropertyActions 

Source
pub trait ObsPropertyActions: ObsObjectTrait {
    // Required method
    fn invoke_property_button(
        &self,
        name: &str,
    ) -> Result<PropertyActionOutcome, ObsError>;
}
Expand description

Instance-bound dynamic property actions.

A type-level descriptor is intentionally insufficient: button callbacks receive the owning OBS object instance. Implementations therefore query the concrete object’s property tree, verify the named property is an enabled button, invoke it with that same instance, and refresh metadata.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§