pub struct ReadReceipts {
pub num_unread: u64,
pub num_notifications: u64,
pub num_mentions: u64,
pub latest_active: Option<LatestReadReceipt>,
pub pending: RingBuffer<OwnedEventId>,
}Expand description
Public data about read receipts collected during processing of that room.
Fields§
§num_unread: u64Does the room have unread messages?
num_notifications: u64Does the room have unread events that should notify?
num_mentions: u64Does the room have messages causing highlights for the users? (aka mentions)
latest_active: Option<LatestReadReceipt>The latest read receipt (main-threaded or unthreaded) known for the room.
pending: RingBuffer<OwnedEventId>Read receipts that haven’t been matched to their event.
This might mean that the read receipt is in the past further than we recall (i.e. before the first event we’ve ever cached), or in the future (i.e. the event is lagging behind because of federation).
Note: this contains event ids of the event targets of the receipts, not the event ids of the receipt events themselves.
Trait Implementations§
Source§impl Clone for ReadReceipts
impl Clone for ReadReceipts
Source§fn clone(&self) -> ReadReceipts
fn clone(&self) -> ReadReceipts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadReceipts
impl Debug for ReadReceipts
Source§impl Default for ReadReceipts
impl Default for ReadReceipts
Source§impl<'de> Deserialize<'de> for ReadReceipts
impl<'de> Deserialize<'de> for ReadReceipts
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 PartialEq for ReadReceipts
impl PartialEq for ReadReceipts
Source§impl Serialize for ReadReceipts
impl Serialize for ReadReceipts
impl StructuralPartialEq for ReadReceipts
Auto Trait Implementations§
impl Freeze for ReadReceipts
impl RefUnwindSafe for ReadReceipts
impl Send for ReadReceipts
impl Sync for ReadReceipts
impl Unpin for ReadReceipts
impl UnsafeUnpin for ReadReceipts
impl UnwindSafe for ReadReceipts
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read moreSource§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