Skip to main content

IServerPropertyHost

Trait IServerPropertyHost 

Source
pub trait IServerPropertyHost {
    // Required method
    fn server_compositor(&self) -> Option<Rc<ServerCompositor>>;

    // Provided method
    fn set_value(
        &self,
        property: &'static CompositionProperty,
        change: ServerValueChange<'_>,
    ) { ... }
}
Expand description

What a generated server property block needs from the object that embeds it (upstream SimpleServerObject).

Required Methods§

Source

fn server_compositor(&self) -> Option<Rc<ServerCompositor>>

The compositor of the object, while it is alive. Used to resolve the server objects a batch refers to.

Provided Methods§

Source

fn set_value( &self, property: &'static CompositionProperty, change: ServerValueChange<'_>, )

SetValue(prop, ref field, value) as the class of the object defines it. A plain server object assigns; an animated object also invalidates the subscriptions of the property; a render resource goes through super::ServerRenderResourceCore::set_value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§