matrix_sdk_ui::timeline

Trait RoomExt

Source
pub trait RoomExt {
    // Required methods
    fn timeline(&self) -> impl Future<Output = Result<Timeline, Error>> + Send;
    fn timeline_builder(&self) -> TimelineBuilder;
}

Required Methods§

Source

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().

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RoomExt for Room

Implementors§