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§
Sourcefn create(config: &D::Configuration<'_>) -> Result<Self, GvoxError>
fn create(config: &D::Configuration<'_>) -> Result<Self, GvoxError>
Creates a new adapter context handler with the supplied configuration.
Provided Methods§
Sourcefn blit_begin(
&mut self,
_: &K::BlitContext,
_: Option<&RegionRange>,
_: ChannelFlags,
) -> Result<(), GvoxError>
fn blit_begin( &mut self, _: &K::BlitContext, _: Option<&RegionRange>, _: ChannelFlags, ) -> Result<(), GvoxError>
Called whenever a blit operation begins 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.