pub struct TimelineStream { /* private fields */ }
Implementations§
Source§impl TimelineStream
impl TimelineStream
pub fn new(room: Room, timeline: Arc<Timeline>) -> Self
pub fn messages_stream(&self) -> impl Stream<Item = RoomMessageDiff>
Sourcepub async fn paginate_backwards(&self, count: u16) -> Result<bool>
pub async fn paginate_backwards(&self, count: u16) -> Result<bool>
Get the next count messages backwards, and return whether it reached the end
pub async fn get_message(&self, event_id: String) -> Result<RoomMessage>
pub async fn send_message(&self, draft: Box<MsgDraft>) -> Result<bool>
pub async fn edit_message( &self, event_id: String, draft: Box<MsgDraft>, ) -> Result<bool>
pub async fn reply_message( &self, event_id: String, draft: Box<MsgDraft>, ) -> Result<bool>
pub async fn send_single_receipt( &self, receipt_type: String, thread: String, event_id: String, ) -> Result<bool>
pub async fn mark_as_read(&self, user_triggered: bool) -> Result<bool>
pub async fn send_multiple_receipts( &self, fully_read: Option<String>, public_read_receipt: Option<String>, private_read_receipt: Option<String>, ) -> Result<bool>
pub async fn toggle_reaction( &self, unique_id: String, key: String, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for TimelineStream
impl Clone for TimelineStream
Source§fn clone(&self) -> TimelineStream
fn clone(&self) -> TimelineStream
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 moreAuto Trait Implementations§
impl Freeze for TimelineStream
impl !RefUnwindSafe for TimelineStream
impl Send for TimelineStream
impl Sync for TimelineStream
impl Unpin for TimelineStream
impl !UnwindSafe for TimelineStream
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§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