pub trait EncryptStream: Cipher {
// Required methods
fn write(&mut self, data: &[u8]) -> Result<Pond<'_>, CryptoError>;
fn finish(&mut self) -> Result<Pond<'_>, CryptoError>;
}Required Methods§
fn write(&mut self, data: &[u8]) -> Result<Pond<'_>, CryptoError>
Sourcefn finish(&mut self) -> Result<Pond<'_>, CryptoError>
fn finish(&mut self) -> Result<Pond<'_>, CryptoError>
the pond will be cleared after pond.drop() called.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".