pub enum Codec {
}Variants§
Hex
Dump
A hex dump with an offset column (style is xxd or hexdump).
start is the decimal offset the first line starts at (nonzero for
xxd -s / hexdump -s); child ranges stay 0-based.
Base64
Pem
Bundle
Two or more PEM blocks: a certificate chain or a key + cert file.
Jwt
A JSON Web Token; kind is jws (3 parts) or jwe (5 parts).
Gzip
gzip; name is the original file name from the header, if any.
Zlib
Zstd
Protobuf
Der
Cbor
CBOR (RFC 8949): a sequence of one or more Values.
Msgpack
MessagePack: a sequence of one or more Values.
Utf8
Bytes
Implementations§
Trait Implementations§
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Forget for Codec
impl Freeze for Codec
impl Move for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codecwhere
RawVecInner: Sync,
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
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