Trait matrix_sdk_ui::timeline::SlidingSyncRoomExt

source ·
pub trait SlidingSyncRoomExt {
    // Required method
    fn latest_timeline_item<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Option<EventTimelineItem>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn latest_timeline_item<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Option<EventTimelineItem>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the latest timeline item of this room, if it is already cached.

Use Timeline::latest_event instead if you already have a timeline for this SlidingSyncRoom.

Implementations on Foreign Types§

source§

impl SlidingSyncRoomExt for SlidingSyncRoom

source§

fn latest_timeline_item<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Option<EventTimelineItem>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a timeline item representing the latest event in this room. This method wraps latest_event, converting the event into an EventTimelineItem.

Implementors§