Struct matrix_sdk::sliding_sync::SlidingSyncListBuilder
source · pub struct SlidingSyncListBuilder { /* private fields */ }
experimental-sliding-sync
only.Expand description
Builder for SlidingSyncList
.
Implementations§
source§impl SlidingSyncListBuilder
impl SlidingSyncListBuilder
sourcepub fn once_built<C>(self, callback: C) -> Self
pub fn once_built<C>(self, callback: C) -> Self
Runs a callback once the list has been built.
If the list was cached, then the cached fields won’t be available in this callback. Use the streams to get published versions of the cached fields, once they’ve been set.
sourcepub fn sync_mode(self, value: impl Into<SlidingSyncMode>) -> Self
pub fn sync_mode(self, value: impl Into<SlidingSyncMode>) -> Self
Which SlidingSyncMode to start this list under.
sourcepub fn required_state(self, value: Vec<(StateEventType, String)>) -> Self
pub fn required_state(self, value: Vec<(StateEventType, String)>) -> Self
Required states to return per room.
sourcepub fn filters(self, value: Option<SyncRequestListFilters>) -> Self
pub fn filters(self, value: Option<SyncRequestListFilters>) -> Self
Any filters to apply to the query.
sourcepub fn timeline_limit(self, timeline_limit: Bound) -> Self
pub fn timeline_limit(self, timeline_limit: Bound) -> Self
Set the limit of regular events to fetch for the timeline.
sourcepub fn no_timeline_limit(self) -> Self
pub fn no_timeline_limit(self) -> Self
Reset the limit of regular events to fetch for the timeline. It is left to the server to decide how many to send back
sourcepub fn bump_event_types(self, bump_event_types: &[TimelineEventType]) -> Self
pub fn bump_event_types(self, bump_event_types: &[TimelineEventType]) -> Self
Allowlist of event types which should be considered recent activity
when sorting by_recency
.
By omitting event types, clients can ensure
that uninteresting events (e.g. a profile rename) do not cause a
room to jump to the top of its list(s). Empty or
omitted bump_event_types
have no effect: all events in a room will
be considered recent activity.
Trait Implementations§
source§impl Clone for SlidingSyncListBuilder
impl Clone for SlidingSyncListBuilder
source§fn clone(&self) -> SlidingSyncListBuilder
fn clone(&self) -> SlidingSyncListBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SlidingSyncListBuilder
impl Send for SlidingSyncListBuilder
impl Sync for SlidingSyncListBuilder
impl Unpin for SlidingSyncListBuilder
impl !UnwindSafe for SlidingSyncListBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>