Trait matrix_sdk_ui::timeline::RoomExt
source · pub trait RoomExt {
// Required methods
fn timeline(&self) -> impl Future<Output = Result<Timeline, Error>> + Send;
fn timeline_builder(&self) -> TimelineBuilder;
}
Required Methods§
sourcefn timeline(&self) -> impl Future<Output = Result<Timeline, Error>> + Send
fn timeline(&self) -> impl Future<Output = Result<Timeline, Error>> + Send
Get a Timeline
for this room.
This offers a higher-level API than event handlers, in treating things like edits and reactions as updates of existing items rather than new independent events.
This is the same as using room.timeline_builder().build()
.
sourcefn timeline_builder(&self) -> TimelineBuilder
fn timeline_builder(&self) -> TimelineBuilder
Get a TimelineBuilder
for this room.
Timeline
offers a higher-level API than event handlers, in treating
things like edits and reactions as updates of existing items rather
than new independent events.
This allows to customize settings of the Timeline
before
constructing it.
Object Safety§
This trait is not object safe.