Enum olm_rs::PicklingMode [−][src]
Expand description
Used for setting the encryption parameter for pickling (serialisation) functions.
Unencrypted
is functionally equivalent to Encrypted{key: [].to_vec() }
, but is much more clear.
Pickling modes have to be equivalent for pickling and unpickling operations to succeed.
Encrypted
takes ownership of key
, in order to properly destroy it after use.