pub enum SyncIndicator {
Show,
Hide,
}
Expand description
An hint whether a sync spinner/loader/toaster should be prompted to the
user, indicating that the RoomListService
is syncing.
This is entirely arbitrary and optinionated. Of course, once
RoomListService::sync
has been called, it’s going to be constantly
syncing, until RoomListService::stop_sync
is called, or until an error
happened. But in some cases, it’s better for the user experience to prompt
to the user that a sync is happening. It’s usually the first sync, or the
recovering sync. However, the sync indicator must be prompted if the
aforementioned sync is “slow”, otherwise the indicator is likely to “blink”
pretty fast, which can be very confusing. It’s also common to indicate to
the user that a syncing is happening in case of a network error, that
something is catching up etc.
Variants§
Trait Implementations§
source§impl Debug for SyncIndicator
impl Debug for SyncIndicator
source§impl PartialEq for SyncIndicator
impl PartialEq for SyncIndicator
source§fn eq(&self, other: &SyncIndicator) -> bool
fn eq(&self, other: &SyncIndicator) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for SyncIndicator
impl StructuralPartialEq for SyncIndicator
Auto Trait Implementations§
impl Freeze for SyncIndicator
impl RefUnwindSafe for SyncIndicator
impl Send for SyncIndicator
impl Sync for SyncIndicator
impl Unpin for SyncIndicator
impl UnwindSafe for SyncIndicator
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more