pub trait Encoder {
    type Plain;
    type Cipher;
    type Error;

    fn encode(plain: Self::Plain) -> Result<Self::Cipher, Self::Error>;
    fn decode(cipher: Self::Cipher) -> Result<Self::Plain, Self::Error>;
}
Expand description

编码器.

Required Associated Types

Required Methods

编码.

解码.

Implementors