Skip to main content

IServerRenderResourceHost

Trait IServerRenderResourceHost 

Source
pub trait IServerRenderResourceHost: IServerRenderResource {
    // Required methods
    fn compositor(&self) -> Option<Rc<ServerCompositor>>;
    fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>;

    // Provided method
    fn resource_property_changed(&self) { ... }
}
Expand description

A render resource that owns a ServerRenderResourceCore.

Required Methods§

Source

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

The compositor of the resource, while it is alive.

Source

fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>

The resource as a shared handle, for the invalidation queue.

Provided Methods§

Source

fn resource_property_changed(&self)

Called once per group of property changes, before the queued invalidation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§