Enum olm_rs::PicklingMode[][src]

pub enum PicklingMode {
    Unencrypted,
    Encrypted {
        key: Vec<u8>,
    },
}
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.

Variants

Unencrypted

Encrypted

Fields

key: Vec<u8>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.