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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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