[−][src]Enum odbc_avro::Codec
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]
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.
fn from_str(s: &str) -> Result<Codec, <Codec as FromStr>::Err>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToErrorNoContext<T> for T
fn to_root_cause(self) -> ErrorNoContext<T>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.