Trait CertificateCompressor
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 { ... }
}Available on crate feature
boring only.Expand description
Describes certificate compression algorithm. Implementation MUST implement transformation at least in one direction.
Required Associated Constants§
const ALGORITHM: CertificateCompressionAlgorithm
const ALGORITHM: CertificateCompressionAlgorithm
An IANA assigned identifier of compression algorithm
const CAN_COMPRESS: bool
const CAN_COMPRESS: bool
Indicates if compressor support compression
const CAN_DECOMPRESS: bool
const CAN_DECOMPRESS: bool
Indicates if compressor support decompression
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".