Trait BaseAdapterHandler

Source
pub trait BaseAdapterHandler<K: AdapterKind + AdapterKindAssociation, D: AdapterDescriptor<K, Handler = Self>>: 'static + Sized {
    // Required methods
    fn create(config: &D::Configuration<'_>) -> Result<Self, GvoxError>;
    fn destroy(self) -> Result<(), GvoxError>;

    // Provided methods
    fn blit_begin(
        &mut self,
        _: &K::BlitContext,
        _: Option<&RegionRange>,
        _: ChannelFlags,
    ) -> Result<(), GvoxError> { ... }
    fn blit_end(&mut self, _: &K::BlitContext) -> Result<(), GvoxError> { ... }
}
Expand description

Represents the user data type that handles adapter context operations.

Required Methods§

Source

fn create(config: &D::Configuration<'_>) -> Result<Self, GvoxError>

Creates a new adapter context handler with the supplied configuration.

Source

fn destroy(self) -> Result<(), GvoxError>

Destroys the provided adapter context handler.

Provided Methods§

Source

fn blit_begin( &mut self, _: &K::BlitContext, _: Option<&RegionRange>, _: ChannelFlags, ) -> Result<(), GvoxError>

Called whenever a blit operation begins for the current context.

Source

fn blit_end(&mut self, _: &K::BlitContext) -> Result<(), GvoxError>

Called whenever a blit operation ends for the current context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§