[][src]Enum odbc_avro::Codec

pub enum Codec {
    Null,
    Deflate,
}

The compression codec used to compress blocks.

Variants

Null

The Null codec simply passes through data uncompressed.

Deflate

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]

pub fn compress(&self, stream: &mut Vec<u8>) -> Result<(), Error>[src]

Compress a stream of bytes in-place.

pub fn decompress(&self, stream: &mut Vec<u8>) -> Result<(), Error>[src]

Decompress a stream of bytes in-place.

Trait Implementations

impl Clone for Codec[src]

impl Copy for Codec[src]

impl Debug for Codec[src]

impl FromStr for Codec[src]

type Err = DecodeError

The associated error which can be returned from parsing.

impl PartialEq<Codec> for Codec[src]

impl StructuralPartialEq for Codec[src]

impl ToAvro for Codec[src]

Auto Trait Implementations

impl RefUnwindSafe for Codec

impl Send for Codec

impl Sync for Codec

impl Unpin for Codec

impl UnwindSafe for Codec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToErrorNoContext<T> for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E, C> WrapContext<C> for E

type ContextError = ErrorContext<E, C>