CertificateCompressor

Trait CertificateCompressor 

Source
pub trait CertificateCompressor:
    Send
    + Sync
    + 'static {
    const ALGORITHM: CertificateCompressionAlgorithm;
    const CAN_COMPRESS: bool;
    const CAN_DECOMPRESS: bool;

    // Provided methods
    fn compress<W>(&self, input: &[u8], output: &mut W) -> Result<(), Error>
       where W: Write { ... }
    fn decompress<W>(&self, input: &[u8], output: &mut W) -> Result<(), Error>
       where W: Write { ... }
}
Expand description

Describes certificate compression algorithm. Implementation MUST implement transformation at least in one direction.

Required Associated Constants§

Source

const ALGORITHM: CertificateCompressionAlgorithm

An IANA assigned identifier of compression algorithm

Source

const CAN_COMPRESS: bool

Indicates if compressor support compression

Source

const CAN_DECOMPRESS: bool

Indicates if compressor support decompression

Provided Methods§

Source

fn compress<W>(&self, input: &[u8], output: &mut W) -> Result<(), Error>
where W: Write,

Perform compression of input buffer and write compressed data to output.

Source

fn decompress<W>(&self, input: &[u8], output: &mut W) -> Result<(), Error>
where W: Write,

Perform decompression of input buffer and write compressed data to output.

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§