Enum ruma_identifiers::EventEncryptionAlgorithm [−][src]
#[non_exhaustive] pub enum EventEncryptionAlgorithm { OlmV1Curve25519AesSha2, MegolmV1AesSha2, // some variants omitted }
Expand description
An encryption algorithm to be used to encrypt messages sent to a room.
This type can hold an arbitrary string. To check for algorithms that are not available as a
documented variant here, use its string representation, obtained through .as_str()
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Olm version 1 using Curve25519, AES-256, and SHA-256.
Megolm version 1 using AES-256 and SHA-256.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventEncryptionAlgorithm
impl Send for EventEncryptionAlgorithm
impl Sync for EventEncryptionAlgorithm
impl Unpin for EventEncryptionAlgorithm
impl UnwindSafe for EventEncryptionAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more