pub trait Decrypt {
type Media;
type Keys;
type Error;
// Required method
fn decrypt(
&self,
media: &mut Self::Media,
keys: &Self::Keys,
) -> Result<(), Self::Error>;
}Expand description
Remove sample protection from a media representation, in place.
The inverse of Encrypt. Self::Keys is the key material required to
unprotect the samples (e.g. per-key-ID content keys).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".