Struct matrix_sdk::config::SyncSettings
source · [−]pub struct SyncSettings<'a> { /* private fields */ }
Expand description
Settings for a sync call.
Implementations
sourceimpl<'a> SyncSettings<'a>
impl<'a> SyncSettings<'a>
sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Set the maximum time the server can wait, in milliseconds, before responding to the sync request.
Arguments
timeout
- The time the server is allowed to wait.
sourcepub fn filter(self, filter: Filter<'a>) -> Self
pub fn filter(self, filter: Filter<'a>) -> Self
Set the sync filter. It can be either the filter ID, or the definition for the filter.
Arguments
filter
- The filter configuration that should be used for the sync call.
sourcepub fn full_state(self, full_state: bool) -> Self
pub fn full_state(self, full_state: bool) -> Self
Should the server return the full state from the start of the timeline.
This does nothing if no sync token is set.
Arguments
full_state
- A boolean deciding if the server should return the full state or not.
Trait Implementations
sourceimpl<'a> Clone for SyncSettings<'a>
impl<'a> Clone for SyncSettings<'a>
sourcefn clone(&self) -> SyncSettings<'a>
fn clone(&self) -> SyncSettings<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for SyncSettings<'a>
impl<'a> Debug for SyncSettings<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SyncSettings<'a>
impl<'a> Send for SyncSettings<'a>
impl<'a> Sync for SyncSettings<'a>
impl<'a> Unpin for SyncSettings<'a>
impl<'a> UnwindSafe for SyncSettings<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more