Skip to main content

EmbedTechnique

Trait EmbedTechnique 

Source
pub trait EmbedTechnique {
    // Required methods
    fn technique(&self) -> StegoTechnique;
    fn capacity(&self, cover: &CoverMedia) -> Result<Capacity, StegoError>;
    fn embed(
        &self,
        cover: CoverMedia,
        payload: &Payload,
    ) -> Result<CoverMedia, StegoError>;
}
Expand description

Embedding half of a steganographic technique.

Required Methods§

Source

fn technique(&self) -> StegoTechnique

The technique identifier for this implementation.

Source

fn capacity(&self, cover: &CoverMedia) -> Result<Capacity, StegoError>

Estimate how many payload bytes cover can hold.

§Errors

Returns StegoError::UnsupportedCoverType if the cover kind is incompatible with this technique.

Source

fn embed( &self, cover: CoverMedia, payload: &Payload, ) -> Result<CoverMedia, StegoError>

Embed payload into cover, returning the stego cover.

§Errors

Returns StegoError::PayloadTooLarge or StegoError::MalformedCoverData.

Implementors§