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 duplicate 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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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