pub enum RoomEventCacheUpdate {
Clear,
MoveReadMarkerTo {
event_id: OwnedEventId,
},
UpdateMembers {
ambiguity_changes: BTreeMap<OwnedEventId, AmbiguityChange>,
},
AddTimelineEvents {
events: Vec<SyncTimelineEvent>,
origin: EventsOrigin,
},
AddEphemeralEvents {
events: Vec<Raw<AnySyncEphemeralRoomEvent>>,
},
}
Expand description
An update related to events happened in a room.
Variants§
Clear
The room has been cleared from events.
MoveReadMarkerTo
The fully read marker has moved to a different event.
Fields
§
event_id: OwnedEventId
Event at which the read marker is now pointing.
UpdateMembers
The members have changed.
Fields
§
ambiguity_changes: BTreeMap<OwnedEventId, AmbiguityChange>
Collection of ambiguity changes that room member events trigger.
This is a map of event ID of the m.room.member
event to the
details of the ambiguity change.
AddTimelineEvents
The room has received new timeline events.
Fields
§
events: Vec<SyncTimelineEvent>
All the new events that have been added to the room’s timeline.
§
origin: EventsOrigin
Where the events are coming from.
AddEphemeralEvents
The room has received new ephemeral events.
Fields
§
events: Vec<Raw<AnySyncEphemeralRoomEvent>>
XXX: this is temporary, until read receipts are handled in the event cache
Trait Implementations§
Source§impl Clone for RoomEventCacheUpdate
impl Clone for RoomEventCacheUpdate
Source§fn clone(&self) -> RoomEventCacheUpdate
fn clone(&self) -> RoomEventCacheUpdate
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 moreAuto Trait Implementations§
impl Freeze for RoomEventCacheUpdate
impl RefUnwindSafe for RoomEventCacheUpdate
impl Send for RoomEventCacheUpdate
impl Sync for RoomEventCacheUpdate
impl Unpin for RoomEventCacheUpdate
impl UnwindSafe for RoomEventCacheUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more