Skip to main content

CodecTraitsV3

Trait CodecTraitsV3 

Source
pub trait CodecTraitsV3 {
    // Required method
    fn create(metadata: &MetadataV3) -> Result<Codec, PluginCreateError>
       where Self: Sized;
}
Expand description

Trait for creating a codec from Zarr V3 metadata.

Types implementing this trait can be registered as V3 codec plugins via CodecPluginV3.

Required Methods§

Source

fn create(metadata: &MetadataV3) -> Result<Codec, PluginCreateError>
where Self: Sized,

Create a codec from Zarr V3 metadata.

§Errors

Returns PluginCreateError if the plugin cannot be created.

Implementors§