Trait rustls::compress::CertDecompressor
source · pub trait CertDecompressor:
Debug
+ Send
+ Sync {
// Required methods
fn decompress(
&self,
input: &[u8],
output: &mut [u8],
) -> Result<(), DecompressionFailed>;
fn algorithm(&self) -> CertificateCompressionAlgorithm;
}
Expand description
An available certificate decompression algorithm.
Required Methods§
sourcefn decompress(
&self,
input: &[u8],
output: &mut [u8],
) -> Result<(), DecompressionFailed>
fn decompress( &self, input: &[u8], output: &mut [u8], ) -> Result<(), DecompressionFailed>
Decompress input
, writing the result to output
.
output
is sized to match the declared length of the decompressed data.
Err(DecompressionFailed)
should be returned if decompression produces more, or fewer
bytes than fit in output
, or if the input
is in any way malformed.
sourcefn algorithm(&self) -> CertificateCompressionAlgorithm
fn algorithm(&self) -> CertificateCompressionAlgorithm
Which algorithm this decompressor handles.