Enum matrix_sdk::sliding_sync::RoomListEntry
source · pub enum RoomListEntry {
Empty,
Invalidated(OwnedRoomId),
Filled(OwnedRoomId),
}
Available on crate feature
experimental-sliding-sync
only.Expand description
Represent a room entry in the SlidingSyncList
.
Variants§
Empty
The list knows there is an entry but this entry has not been loaded yet, thus it’s marked as empty.
Invalidated(OwnedRoomId)
The list has loaded this entry in the past, but the entry is now out of range and may no longer be synced, thus it’s marked as invalidated (to use the spec’s term).
Filled(OwnedRoomId)
The list has loaded this entry, and it’s up-to-date.
Implementations§
source§impl RoomListEntry
impl RoomListEntry
sourcepub fn is_empty_or_invalidated(&self) -> bool
pub fn is_empty_or_invalidated(&self) -> bool
Is this entry empty or invalidated?
sourcepub fn as_room_id(&self) -> Option<&RoomId>
pub fn as_room_id(&self) -> Option<&RoomId>
Return the inner room_id
if the entry’ state is not empty.
Trait Implementations§
source§impl Clone for RoomListEntry
impl Clone for RoomListEntry
source§fn clone(&self) -> RoomListEntry
fn clone(&self) -> RoomListEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RoomListEntry
impl Debug for RoomListEntry
source§impl Default for RoomListEntry
impl Default for RoomListEntry
source§fn default() -> RoomListEntry
fn default() -> RoomListEntry
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RoomListEntry
impl<'de> Deserialize<'de> for RoomListEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a RoomListEntry> for RoomListEntry
impl<'a> From<&'a RoomListEntry> for RoomListEntry
source§fn from(value: &'a RoomListEntry) -> Self
fn from(value: &'a RoomListEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RoomListEntry
impl Send for RoomListEntry
impl Sync for RoomListEntry
impl Unpin for RoomListEntry
impl UnwindSafe for RoomListEntry
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
Mutably borrows from an owned value. Read more
§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
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.