Skip to main content

BundleEncode

Trait BundleEncode 

Source
pub trait BundleEncode {
    type Settings: Default + Serialize + DeserializeOwned;
    type Error: Into<Box<dyn Error + Send + Sync + 'static>>;

    // Required method
    fn encode<O: BundleSink>(
        self,
        sink: &mut O,
        settings: &Self::Settings,
    ) -> Result<(), Self::Error>;
}
Expand description

Trait for encoding data into a bundle of files

Required Associated Types§

Required Methods§

Source

fn encode<O: BundleSink>( self, sink: &mut O, settings: &Self::Settings, ) -> Result<(), Self::Error>

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§