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