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§
Sourcefn relations(
&self,
thread_root: OwnedEventId,
opts: RelationsOptions,
) -> impl Future<Output = Result<Relations, Error>> + SendOutsideWasm
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.
Sourcefn load_event(
&self,
event_id: &OwnedEventId,
) -> impl Future<Output = Result<TimelineEvent, Error>> + SendOutsideWasm
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.