Trait TimelineItemExt

Source
pub(crate) trait TimelineItemExt: 'static {
    // Required methods
    fn timeline(&self) -> Timeline;
    fn timeline_id(&self) -> String;

    // Provided method
    fn room(&self) -> Room { ... }
}
Expand description

Public trait containing implemented methods for everything that derives from TimelineItem.

To override the behavior of these methods, override the corresponding method of TimelineItemImpl.

Required Methods§

Source

fn timeline(&self) -> Timeline

The timeline containing this TimelineItem.

Source

fn timeline_id(&self) -> String

A unique ID for this TimelineItem in the local timeline.

Provided Methods§

Source

fn room(&self) -> Room

The room containing this TimelineItem.

Implementors§