Trait PaginableThread

Source
pub trait PaginableThread: SendOutsideWasm + SyncOutsideWasm {
    // Required methods
    fn relations(
        &self,
        thread_root: OwnedEventId,
        opts: RelationsOptions,
    ) -> impl Future<Output = Result<Relations, Error>> + SendOutsideWasm;
    fn load_event(
        &self,
        event_id: &OwnedEventId,
    ) -> impl Future<Output = Result<TimelineEvent, Error>> + SendOutsideWasm;
}
Expand description

A paginable thread interface, useful for testing purposes.

Required Methods§

Source

fn relations( &self, thread_root: OwnedEventId, opts: RelationsOptions, ) -> impl Future<Output = Result<Relations, Error>> + SendOutsideWasm

Runs a /relations query for the given thread, with the given options.

Source

fn load_event( &self, event_id: &OwnedEventId, ) -> impl Future<Output = Result<TimelineEvent, Error>> + SendOutsideWasm

Load an event, given its event ID.

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.

Implementors§