Enum avro_rs::Codec [] [src]

pub enum Codec {
    Null,
    Deflate,
}

The compression codec used to compress blocks.

Variants

The Null codec simply passes through data uncompressed.

The Deflate codec writes the data block using the deflate algorithm as specified in RFC 1951, and typically implemented using the zlib library. Note that this format (unlike the "zlib format" in RFC 1950) does not have a checksum.

Methods

impl Codec
[src]

[src]

Compress a stream of bytes in-place.

[src]

Decompress a stream of bytes in-place.

Trait Implementations

impl Clone for Codec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Codec
[src]

impl Debug for Codec
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Codec
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl ToAvro for Codec
[src]

[src]

Transforms this value into an Avro-compatible Value.

impl FromStr for Codec
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Codec

impl Sync for Codec