Struct rsmc_tokio::ZlibCompressor [−][src]
pub struct ZlibCompressor { /* fields omitted */ }
Expand description
A compressor that implements zlib compression and decompression.
Implementations
Construct a new zlib compressor with the given compression ratio and min_bytes. Packets smaller than min_bytes will not get compressed by the Zlib compressor.
Trait Implementations
Consume a packet, returning a (possibly) modified packet with the packet value compressed. This should set the appropriate packet flags on the extras field. Read more
Consume a packet, returning a (possibly) modified packet with the packet value decompressed. This should unset the appropriate packet flags on the extras field. Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ZlibCompressor
impl Send for ZlibCompressor
impl Sync for ZlibCompressor
impl Unpin for ZlibCompressor
impl UnwindSafe for ZlibCompressor
Blanket Implementations
Mutably borrows from an owned value. Read more