logo
#[non_exhaustive]
pub enum EventType {
Show 56 variants Direct, IdentityServer, IgnoredUserList, PushRules, SecretStorageDefaultKey, SecretStorageKey(String), FullyRead, Tag, Receipt, Typing, CallAnswer, CallInvite, CallHangup, CallCandidates, KeyVerificationReady, KeyVerificationStart, KeyVerificationCancel, KeyVerificationAccept, KeyVerificationKey, KeyVerificationMac, KeyVerificationDone, Reaction, RoomEncrypted, RoomMessage, RoomMessageFeedback, RoomRedaction, Sticker, PolicyRuleRoom, PolicyRuleServer, PolicyRuleUser, RoomAliases, RoomAvatar, RoomCanonicalAlias, RoomCreate, RoomEncryption, RoomGuestAccess, RoomHistoryVisibility, RoomJoinRules, RoomMember, RoomName, RoomPinnedEvents, RoomPowerLevels, RoomServerAcl, RoomThirdPartyInvite, RoomTombstone, RoomTopic, SpaceChild, SpaceParent, Dummy, RoomKey, RoomKeyRequest, ForwardedRoomKey, KeyVerificationRequest, SecretRequest, SecretSend, Presence, // some variants omitted
}
👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

Expand description

The type of Event this is.

This type can hold an arbitrary string. To build events with a custom type, convert it from a string with ::from() / .into(). To check for events that are not available as a documented variant here, use its string representation, obtained through .to_string().

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Direct

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.direct

IdentityServer

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.identity_server

IgnoredUserList

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.ignored_user_list

PushRules

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.push_rules

SecretStorageDefaultKey

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.secret_storage.default_key

SecretStorageKey(String)

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.secret_storage.key.*

FullyRead

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.fully_read

Tag

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.tag

Receipt

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.receipt

Typing

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.typing

CallAnswer

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.call.answer

CallInvite

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.call.invite

CallHangup

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.call.hangup

CallCandidates

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.call.candidates

KeyVerificationReady

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.ready

KeyVerificationStart

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.start

KeyVerificationCancel

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.cancel

KeyVerificationAccept

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.accept

KeyVerificationKey

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.key

KeyVerificationMac

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.mac

KeyVerificationDone

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.done

Reaction

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.reaction

RoomEncrypted

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.encrypted

RoomMessage

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.message

RoomMessageFeedback

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.message.feedback

RoomRedaction

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.redaction

Sticker

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.sticker

PolicyRuleRoom

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.policy.rule.room

PolicyRuleServer

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.policy.rule.server

PolicyRuleUser

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.policy.rule.user

RoomAliases

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.aliases

RoomAvatar

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.avatar

RoomCanonicalAlias

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.canonical_alias

RoomCreate

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.create

RoomEncryption

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.encryption

RoomGuestAccess

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.guest_access

RoomHistoryVisibility

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.history_visibility

RoomJoinRules

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.join_rules

RoomMember

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.member

RoomName

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.name

RoomPinnedEvents

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.pinned_events

RoomPowerLevels

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.power_levels

RoomServerAcl

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.server_acl

RoomThirdPartyInvite

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.third_party_invite

RoomTombstone

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.tombstone

RoomTopic

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room.topic

SpaceChild

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.space.child

SpaceParent

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.space.parent

Dummy

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.dummy

RoomKey

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room_key

RoomKeyRequest

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.room_key_request

ForwardedRoomKey

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.forwarded_room_key

KeyVerificationRequest

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.key.verification.request

SecretRequest

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.secret.request

SecretSend

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.secret.send

Presence

👎 Deprecated:

use a fine-grained event type enum like RoomEventType instead

m.presence

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. 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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

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

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more