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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more