[−][src]Enum avro_rs::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.
Implementations
impl Codec
[src]
pub fn compress(self, stream: &mut Vec<u8>) -> AvroResult<()>
[src]
Compress a stream of bytes in-place.
pub fn decompress(self, stream: &mut Vec<u8>) -> AvroResult<()>
[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<'_derivative_strum> From<&'_derivative_strum Codec> for &'static str
[src]
impl From<Codec> for &'static str
[src]
impl From<Codec> for Value
[src]
impl FromStr for Codec
[src]
type Err = ParseError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Codec, Self::Err>
[src]
impl PartialEq<Codec> for Codec
[src]
pub fn eq(&self, other: &Codec) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq 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,
pub 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> ToAvro for T where
T: Into<Value>,
[src]
T: Into<Value>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,