Skip to main content

IServerGpuImportedObject

Trait IServerGpuImportedObject 

Source
pub trait IServerGpuImportedObject: 'static {
    // Required methods
    fn base(&self) -> &ServerGpuImportedObjectBase;
    fn import(&self, server: &ServerCompositor) -> Result<(), ServerJobError>;
    fn dispose(&self);
}
Expand description

The server part of an imported object: what the jobs of the render thread import, use and dispose.

Required Methods§

Source

fn base(&self) -> &ServerGpuImportedObjectBase

Source

fn import(&self, server: &ServerCompositor) -> Result<(), ServerJobError>

Imports the object (Import).

Source

fn dispose(&self)

Releases the imported object (Dispose).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§