pub struct Packet { /* fields omitted */ }Data types
Converts serializable data to and from websafe strings.
Construct a Packet with the given master key. Must be 64 hex characters.
Turn a Rust type into an encrypted packet. This object will
possibly be deserialized in a different programming
environment—it should be JSON-like in structure.
Turn an encrypted packet into a Rust structure. This
object possibly originated in a different programming
environment—it should be JSON-like in structure.
Encrypt a packet into raw bytes. This allows the caller
to issue app-specific typesafe serialization calls beforehand.
Decrypt a packet into raw bytes. This allows the caller
to issue app-specific typesafe deserialization calls later.
Construct a Packet with the given 256-bit master key.
Ensure that sensitive data is removed from memory
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static