SerializeAdapterHandler

Trait SerializeAdapterHandler 

Source
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§

Source

type RegionData

The loaded data associated with a given region of voxels.

Required Methods§

Source

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.

Source

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.

Implementors§