Struct fractal::session::model::room_list::room_list_metainfo::RoomListMetainfo
source · pub struct RoomListMetainfo(Rc<RoomListMetainfoInner>);
Expand description
The rooms metainfo that allow to restore the RoomList in its previous state.
Tuple Fields§
§0: Rc<RoomListMetainfoInner>
Implementations§
source§impl RoomListMetainfo
impl RoomListMetainfo
sourcepub fn set_room_list(&self, room_list: &RoomList)
pub fn set_room_list(&self, room_list: &RoomList)
Set the parent RoomList
.
sourcepub async fn load_rooms(&self) -> IndexMap<OwnedRoomId, Room>
pub async fn load_rooms(&self) -> IndexMap<OwnedRoomId, Room>
Load the rooms and their metainfo from the store.
sourcepub fn watch_room(&self, room: &Room)
pub fn watch_room(&self, room: &Room)
Watch the given room for metainfo changes.
Methods from Deref<Target = RoomListMetainfoInner>§
sourceasync fn persist(&self, rooms_metainfo: &BTreeMap<OwnedRoomId, RoomMetainfo>)
async fn persist(&self, rooms_metainfo: &BTreeMap<OwnedRoomId, RoomMetainfo>)
Persist the metainfo in the store.
sourceasync fn update_rooms_metainfo_for_room(&self, room_id: OwnedRoomId)
async fn update_rooms_metainfo_for_room(&self, room_id: OwnedRoomId)
Update the room metainfo for the room with the given ID.
sourceasync fn try_update_rooms_metainfo(&self) -> bool
async fn try_update_rooms_metainfo(&self) -> bool
Update the rooms metainfo if a lock can be acquired.
Returns true
if the lock could be acquired.
Trait Implementations§
source§impl Clone for RoomListMetainfo
impl Clone for RoomListMetainfo
source§fn clone(&self) -> RoomListMetainfo
fn clone(&self) -> RoomListMetainfo
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 RoomListMetainfo
impl Debug for RoomListMetainfo
source§impl Default for RoomListMetainfo
impl Default for RoomListMetainfo
source§fn default() -> RoomListMetainfo
fn default() -> RoomListMetainfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoomListMetainfo
impl !RefUnwindSafe for RoomListMetainfo
impl !Send for RoomListMetainfo
impl !Sync for RoomListMetainfo
impl Unpin for RoomListMetainfo
impl !UnwindSafe for RoomListMetainfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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,
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>
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>
Converts
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>
Converts
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 moresource§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.