pub enum SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent,{
Original(OriginalSyncMessageLikeEvent<C>),
Redacted(RedactedSyncMessageLikeEvent<<C as RedactContent>::Redacted>),
}
Available on crate feature
events
only.Expand description
A possibly-redacted message-like event without a room_id
.
SyncMessageLikeEvent
implements the comparison traits using only the event_id
field, a
sorted list would be sorted lexicographically based on the event’s EventId
.
Variants§
Original(OriginalSyncMessageLikeEvent<C>)
Original, unredacted form of the event.
Redacted(RedactedSyncMessageLikeEvent<<C as RedactContent>::Redacted>)
Redacted form of the event with minimal fields.
Implementations§
Source§impl<C> SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent,
impl<C> SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent,
Sourcepub fn event_type(&self) -> MessageLikeEventType
Available on crate feature unstable-msc3927
only.
pub fn event_type(&self) -> MessageLikeEventType
unstable-msc3927
only.Returns the type
of this event.
Sourcepub fn event_id(&self) -> &EventId
Available on crate feature unstable-msc3927
only.
pub fn event_id(&self) -> &EventId
unstable-msc3927
only.Returns this event’s event_id
field.
Sourcepub fn sender(&self) -> &UserId
Available on crate feature unstable-msc3927
only.
pub fn sender(&self) -> &UserId
unstable-msc3927
only.Returns this event’s sender
field.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Available on crate feature unstable-msc3927
only.
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
unstable-msc3927
only.Returns this event’s origin_server_ts
field.
Sourcepub fn as_original(&self) -> Option<&OriginalSyncMessageLikeEvent<C>>
Available on crate feature unstable-msc3927
only.
pub fn as_original(&self) -> Option<&OriginalSyncMessageLikeEvent<C>>
unstable-msc3927
only.Get the inner OriginalSyncMessageLikeEvent
if this is an unredacted event.
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> MessageLikeEvent<C>
Available on crate feature unstable-msc3927
only.
pub fn into_full_event(self, room_id: OwnedRoomId) -> MessageLikeEvent<C>
unstable-msc3927
only.Convert this sync event into a full event (one with a room_id
field).
Trait Implementations§
Source§impl<C> Clone for SyncMessageLikeEvent<C>where
C: Clone + MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + Clone,
impl<C> Clone for SyncMessageLikeEvent<C>where
C: Clone + MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + Clone,
Source§fn clone(&self) -> SyncMessageLikeEvent<C>
fn clone(&self) -> SyncMessageLikeEvent<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> Debug for SyncMessageLikeEvent<C>where
C: Debug + MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + Debug,
impl<C> Debug for SyncMessageLikeEvent<C>where
C: Debug + MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + Debug,
Source§impl<'de, C> Deserialize<'de> for SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + EventContentFromType,
impl<'de, C> Deserialize<'de> for SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent + EventContentFromType,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SyncMessageLikeEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SyncMessageLikeEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> From<MessageLikeEvent<C>> for SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent,
impl<C> From<MessageLikeEvent<C>> for SyncMessageLikeEvent<C>where
C: MessageLikeEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedMessageLikeEventContent,
Source§fn from(full: MessageLikeEvent<C>) -> SyncMessageLikeEvent<C>
fn from(full: MessageLikeEvent<C>) -> SyncMessageLikeEvent<C>
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<AudioEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3927
only.
impl From<SyncMessageLikeEvent<AudioEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3927
only.Source§fn from(c: SyncMessageLikeEvent<AudioEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<AudioEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3489
only.
impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3489
only.Source§fn from(c: SyncMessageLikeEvent<BeaconEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<BeaconEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallAnswerEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallAnswerEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallCandidatesEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallCandidatesEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallHangupEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallHangupEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallInviteEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallInviteEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallNegotiateEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallNegotiateEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc4075
only.
impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc4075
only.Source§fn from(
c: SyncMessageLikeEvent<CallNotifyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallNotifyEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallRejectEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallRejectEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallSelectAnswerEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallSelectAnswerEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<EmoteEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3954
only.
impl From<SyncMessageLikeEvent<EmoteEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3954
only.Source§fn from(c: SyncMessageLikeEvent<EmoteEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<EmoteEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<EncryptedEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3956
only.
impl From<SyncMessageLikeEvent<EncryptedEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3956
only.Source§fn from(
c: SyncMessageLikeEvent<EncryptedEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<EncryptedEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<FileEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3551
only.
impl From<SyncMessageLikeEvent<FileEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3551
only.Source§fn from(c: SyncMessageLikeEvent<FileEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<FileEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<ImageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3552
only.
impl From<SyncMessageLikeEvent<ImageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3552
only.Source§fn from(c: SyncMessageLikeEvent<ImageEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<ImageEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationCancelEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationCancelEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationDoneEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationDoneEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationKeyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationKeyEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationMacEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationMacEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationReadyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationReadyEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationStartEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3488
only.
impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3488
only.Source§fn from(
c: SyncMessageLikeEvent<LocationEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<LocationEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc1767
only.
impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc1767
only.Source§fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<PollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollResponseEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<PollStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollStartEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<ReactionEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<ReactionEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<RoomEncryptedEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomEncryptedEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<RoomMessageEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomMessageEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<UnstablePollEndEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollEndEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<UnstablePollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollResponseEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<UnstablePollStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollStartEventContent>, ) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<VideoEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3553
only.
impl From<SyncMessageLikeEvent<VideoEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3553
only.Source§fn from(c: SyncMessageLikeEvent<VideoEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<VideoEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Source§impl From<SyncMessageLikeEvent<VoiceEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3245
only.
impl From<SyncMessageLikeEvent<VoiceEventContent>> for AnySyncMessageLikeEvent
Available on crate feature
unstable-msc3245
only.Source§fn from(c: SyncMessageLikeEvent<VoiceEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<VoiceEventContent>) -> AnySyncMessageLikeEvent
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for SyncMessageLikeEvent<C>
impl<C> RefUnwindSafe for SyncMessageLikeEvent<C>
impl<C> Send for SyncMessageLikeEvent<C>
impl<C> Sync for SyncMessageLikeEvent<C>
impl<C> Unpin for SyncMessageLikeEvent<C>
impl<C> UnwindSafe for SyncMessageLikeEvent<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more