pub struct RoomScreen { /* private fields */ }
Expand description
A serializable struct representing the state of a given Matrix Room. Fields are not exposed to the adapter directly, the adapter can only serialize this struct.
Implementations§
Source§impl RoomScreen
impl RoomScreen
pub fn new( updaters: Arc<Box<dyn StateUpdater>>, room_id: OwnedRoomId, room_name: String, ) -> Self
Sourcepub fn process_timeline_updates(&mut self)
pub fn process_timeline_updates(&mut self)
Processes all pending background updates to the currently-shown timeline.
Sourcepub fn show_timeline(&mut self)
pub fn show_timeline(&mut self)
Invoke this when this timeline is being shown, e.g., when the user navigates to this timeline.
Sourcepub fn set_displayed_room<S: Into<Option<String>>>(
&mut self,
room_id: OwnedRoomId,
room_name: S,
)
pub fn set_displayed_room<S: Into<Option<String>>>( &mut self, room_id: OwnedRoomId, room_name: S, )
Sets this RoomScreen
widget to display the timeline for the given room.
Trait Implementations§
Source§impl Debug for RoomScreen
impl Debug for RoomScreen
Source§impl Drop for RoomScreen
impl Drop for RoomScreen
Auto Trait Implementations§
impl Freeze for RoomScreen
impl !RefUnwindSafe for RoomScreen
impl Send for RoomScreen
impl Sync for RoomScreen
impl Unpin for RoomScreen
impl !UnwindSafe for RoomScreen
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, 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 more