Enum cdrs::compression::Compression [] [src]

pub enum Compression {
    Lz4,
    Snappy,
    None,
}

Enum which represents a type of compression. Only non-startup frame's body can be compressen.

Variants

lz4 compression

snappy compression

Non compression

Methods

impl Compression
[src]

It encodes bytes basing on type of compression.

It decodes bytes basing on type of compression.

It transforms compression method into a string.

Trait Implementations

impl Debug for Compression
[src]

Formats the value using the given formatter.

impl PartialEq for Compression
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Compression
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Compression
[src]

impl From<String> for Compression
[src]

It converts String into Compression. If string is neither lz4 nor snappy then Compression::None will be returned

impl<'a> From<&'a str> for Compression
[src]

It converts str into Compression. If string is neither lz4 nor snappy then Compression::None will be returned