pub enum PicklingMode {
Unencrypted,
Encrypted {
key: Vec<u8, Global>,
},
}
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the current Span, returning an
Instrumented wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.