pub struct RoomListService { /* private fields */ }
Expand description
The RoomListService
type. See the module’s documentation to learn more.
Implementations§
Source§impl RoomListService
impl RoomListService
Sourcepub async fn new(client: Client) -> Result<Self, Error>
pub async fn new(client: Client) -> Result<Self, Error>
Create a new RoomList
.
A matrix_sdk::SlidingSync
client will be created, with a cached list
already pre-configured.
This won’t start an encryption sync, and it’s the user’s responsibility
to create one in this case using
EncryptionSyncService
.
Sourcepub fn sync_indicator(
&self,
delay_before_showing: Duration,
delay_before_hiding: Duration,
) -> impl Stream<Item = SyncIndicator>
pub fn sync_indicator( &self, delay_before_showing: Duration, delay_before_hiding: Duration, ) -> impl Stream<Item = SyncIndicator>
Get a Stream
of SyncIndicator
.
Read the documentation of SyncIndicator
to learn more about it.
Sourcepub fn state(&self) -> Subscriber<State>
pub fn state(&self) -> Subscriber<State>
Get a subscriber to the state.
Sourcepub fn subscribe_to_rooms(&self, room_ids: &[&RoomId])
pub fn subscribe_to_rooms(&self, room_ids: &[&RoomId])
Subscribe to rooms.
It means that all events from these rooms will be received every time,
no matter how the RoomList
is configured.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RoomListService
impl !RefUnwindSafe for RoomListService
impl Send for RoomListService
impl Sync for RoomListService
impl Unpin for RoomListService
impl !UnwindSafe for RoomListService
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
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>
Consume a handle, getting back the initial
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>
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