pub struct ExportedSessionKey { /* private fields */ }
Expand description

The exported session key.

This uses the same format as the SessionKey minus the signature at the end.

Implementations

Serialize the ExportedSessionKey to a byte vector.

Deserialize the ExportedSessionKey from a byte slice.

Serialize the ExportedSessionKey to a base64 encoded string.

This method will first use the ExportedSessionKey::to_bytes() to convert the session key to a byte vector and then encode the byte vector to a string using unpadded base64 as the encoding.

Deserialize the ExportedSessionKey from base64 encoded string.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Executes the destructor for this type. Read more

Serialize this value into the given Serde serializer. Read more

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.

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.