pub enum RoomEventCacheUpdate {
MoveReadMarkerTo {
event_id: OwnedEventId,
},
UpdateMembers {
ambiguity_changes: BTreeMap<OwnedEventId, AmbiguityChange>,
},
UpdateTimelineEvents {
diffs: Vec<VectorDiff<TimelineEvent>>,
origin: EventsOrigin,
},
AddEphemeralEvents {
events: Vec<Raw<AnySyncEphemeralRoomEvent>>,
},
}Expand description
An update related to events happened in a room.
Variants§
MoveReadMarkerTo
The fully read marker has moved to a different event.
Fields
§
event_id: OwnedEventIdEvent 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.
UpdateTimelineEvents
The room has received updates for the timeline as diffs.
Fields
§
diffs: Vec<VectorDiff<TimelineEvent>>Diffs to apply to the timeline.
§
origin: EventsOriginWhere the diffs 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