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§
Sourcefn compositor(&self) -> Option<Rc<ServerCompositor>>
fn compositor(&self) -> Option<Rc<ServerCompositor>>
The compositor of the resource, while it is alive.
Sourcefn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
The resource as a shared handle, for the invalidation queue.
Provided Methods§
Sourcefn resource_property_changed(&self)
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".