pub trait SerializeAdapterHandler<D: AdapterDescriptor<Serialize, Handler = Self>>: BaseAdapterHandler<Serialize, D> {
type RegionData;
// Required methods
fn serialize_region(
&mut self,
blit_ctx: &SerializeBlitContext,
range: &RegionRange,
channel_flags: ChannelFlags,
) -> Result<(), GvoxError>;
fn receive_region(
&mut self,
blit_ctx: &SerializeBlitContext,
region: &RegionRef<'_>,
) -> Result<(), GvoxError>;
}Expand description
Represents the user data type that handles serialize adapter context operations.
Required Associated Types§
Sourcetype RegionData
type RegionData
The loaded data associated with a given region of voxels.
Required Methods§
Sourcefn serialize_region(
&mut self,
blit_ctx: &SerializeBlitContext,
range: &RegionRange,
channel_flags: ChannelFlags,
) -> Result<(), GvoxError>
fn serialize_region( &mut self, blit_ctx: &SerializeBlitContext, range: &RegionRange, channel_flags: ChannelFlags, ) -> Result<(), GvoxError>
Serializes the provided range of voxels to the output stream.
Sourcefn receive_region(
&mut self,
blit_ctx: &SerializeBlitContext,
region: &RegionRef<'_>,
) -> Result<(), GvoxError>
fn receive_region( &mut self, blit_ctx: &SerializeBlitContext, region: &RegionRef<'_>, ) -> Result<(), GvoxError>
Serializes the provided range of voxels to the output stream.
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.