Enum ruma_events::AnySyncMessageEvent [−][src]
pub enum AnySyncMessageEvent {
Show 17 variants
CallAnswer(SyncMessageEvent<AnswerEventContent>),
CallInvite(SyncMessageEvent<InviteEventContent>),
CallHangup(SyncMessageEvent<HangupEventContent>),
CallCandidates(SyncMessageEvent<CandidatesEventContent>),
KeyVerificationReady(SyncMessageEvent<ReadyEventContent>),
KeyVerificationStart(SyncMessageEvent<StartEventContent>),
KeyVerificationCancel(SyncMessageEvent<CancelEventContent>),
KeyVerificationAccept(SyncMessageEvent<AcceptEventContent>),
KeyVerificationKey(SyncMessageEvent<KeyEventContent>),
KeyVerificationMac(SyncMessageEvent<MacEventContent>),
KeyVerificationDone(SyncMessageEvent<DoneEventContent>),
Reaction(SyncMessageEvent<ReactionEventContent>),
RoomEncrypted(SyncMessageEvent<EncryptedEventContent>),
RoomMessage(SyncMessageEvent<MessageEventContent>),
RoomMessageFeedback(SyncMessageEvent<FeedbackEventContent>),
RoomRedaction(SyncRedactionEvent),
Sticker(SyncMessageEvent<StickerEventContent>),
// some variants omitted
}
Expand description
Any message event.
Variants
CallAnswer(SyncMessageEvent<AnswerEventContent>)
m.call.answer
Tuple Fields of CallAnswer
CallInvite(SyncMessageEvent<InviteEventContent>)
m.call.invite
Tuple Fields of CallInvite
CallHangup(SyncMessageEvent<HangupEventContent>)
m.call.hangup
Tuple Fields of CallHangup
CallCandidates(SyncMessageEvent<CandidatesEventContent>)
m.call.candidates
Tuple Fields of CallCandidates
KeyVerificationReady(SyncMessageEvent<ReadyEventContent>)
unstable-pre-spec
only.m.key.verification.ready
Tuple Fields of KeyVerificationReady
KeyVerificationStart(SyncMessageEvent<StartEventContent>)
unstable-pre-spec
only.m.key.verification.start
Tuple Fields of KeyVerificationStart
KeyVerificationCancel(SyncMessageEvent<CancelEventContent>)
unstable-pre-spec
only.m.key.verification.cancel
Tuple Fields of KeyVerificationCancel
KeyVerificationAccept(SyncMessageEvent<AcceptEventContent>)
unstable-pre-spec
only.m.key.verification.accept
Tuple Fields of KeyVerificationAccept
KeyVerificationKey(SyncMessageEvent<KeyEventContent>)
unstable-pre-spec
only.m.key.verification.key
Tuple Fields of KeyVerificationKey
KeyVerificationMac(SyncMessageEvent<MacEventContent>)
unstable-pre-spec
only.m.key.verification.mac
Tuple Fields of KeyVerificationMac
KeyVerificationDone(SyncMessageEvent<DoneEventContent>)
unstable-pre-spec
only.m.key.verification.done
Tuple Fields of KeyVerificationDone
Reaction(SyncMessageEvent<ReactionEventContent>)
unstable-pre-spec
only.m.reaction
Tuple Fields of Reaction
RoomEncrypted(SyncMessageEvent<EncryptedEventContent>)
m.room.encrypted
Tuple Fields of RoomEncrypted
RoomMessage(SyncMessageEvent<MessageEventContent>)
m.room.message
Tuple Fields of RoomMessage
RoomMessageFeedback(SyncMessageEvent<FeedbackEventContent>)
m.room.message.feedback
Tuple Fields of RoomMessageFeedback
RoomRedaction(SyncRedactionEvent)
m.room.redaction
Tuple Fields of RoomRedaction
Sticker(SyncMessageEvent<StickerEventContent>)
m.sticker
Tuple Fields of Sticker
Implementations
Convert this sync event into a full event, one with a room_id field.
Returns the any content enum for this event.
Returns the type
of this event.
Returns this event’s origin_server_ts field.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
impl From<SyncMessageEvent<AcceptEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<AcceptEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<SyncMessageEvent<CancelEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<CancelEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<SyncMessageEvent<DoneEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<DoneEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<SyncMessageEvent<KeyEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<KeyEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
impl From<SyncMessageEvent<MacEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<MacEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<SyncMessageEvent<ReactionEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<ReactionEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
impl From<SyncMessageEvent<ReadyEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<ReadyEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
impl From<SyncMessageEvent<StartEventContent>> for AnySyncMessageEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncMessageEvent<StartEventContent>> for AnySyncMessageEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
The redacted form of the event.
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncMessageEvent
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncMessageEvent
Transforms self
into a redacted form (removing most fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnySyncMessageEvent
impl Send for AnySyncMessageEvent
impl Sync for AnySyncMessageEvent
impl Unpin for AnySyncMessageEvent
impl UnwindSafe for AnySyncMessageEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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