Skip to main content

Module readreceiptid_readreceipt

Module readreceiptid_readreceipt 

Source
Expand description

Leftover rows in readreceiptid_readreceipt.

A key is a room id, a stream count and a user id, then a thread kind on any row written since receipts became thread-aware. An older writer could leave a user’s previous receipt behind.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::mem::replace; πŸ”’
use std::str::from_utf8; πŸ”’
use futures::Stream; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UserId; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::smallstr::SmallString; πŸ”’
use tuwunel_core::utils::ReadyExt; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use tuwunel_database::SEP; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’

EnumsΒ§

Finding
A readreceiptid_readreceipt row left behind by an earlier receipt.

ConstantsΒ§

COUNT πŸ”’

StaticsΒ§

CHECK πŸ”’

FunctionsΒ§

advance πŸ”’
Moves the walk on to a row, reporting whether it has the last row’s holder.
finding πŸ”’
holder πŸ”’
parse πŸ”’
Reads a key’s room and user, and whether a thread kind follows the user.
readable πŸ”’
Whether a thread kind decodes as the receipt reader takes it.
scan
Streams each repeated row and each key that cannot be read.
split πŸ”’

Type AliasesΒ§

Holder πŸ”’
Id πŸ”’
Row πŸ”’