pub enum Encoder {
Gzip,
Zstd(i32),
ZstdBase58(i32),
}
Expand description
Represents the compression encoding algorithm.
Variants§
Gzip
Encodes with “Gzip” compression.
Zstd(i32)
Encodes with “Zstandard” compression.
ZstdBase58(i32)
Encodes with “Zstandard” compression and apply base58.
Implementations§
Trait Implementations§
Source§impl Display for Encoder
ref. https://doc.rust-lang.org/std/string/trait.ToString.html
ref. https://doc.rust-lang.org/std/fmt/trait.Display.html
Use “Self.to_string()” to directly invoke this
impl Display for Encoder
ref. https://doc.rust-lang.org/std/string/trait.ToString.html ref. https://doc.rust-lang.org/std/fmt/trait.Display.html Use “Self.to_string()” to directly invoke this
impl Eq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more