Skip to main content

Module threads

Module threads 

Source

Re-exportsΒ§

use std::collections::BTreeMap; πŸ”’
use std::iter::once; πŸ”’
use std::pin::pin; πŸ”’
use std::sync::Arc; πŸ”’
use futures::Stream; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryFutureExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::future::join3; πŸ”’
use futures::future::ready; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::EventId; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::OwnedUserId; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UInt; πŸ”’
use ruma::UserId; πŸ”’
use ruma::api::Direction; πŸ”’
use ruma::api::client::threads::get_threads::v1::IncludeThreads; πŸ”’
use ruma::events::TimelineEventType; πŸ”’
use ruma::events::relation::RelationType; πŸ”’
use ruma::events::room::encrypted::Relation; πŸ”’
use ruma::uint; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use tuwunel_core::Err; πŸ”’
use tuwunel_core::Error; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::err; πŸ”’
use tuwunel_core::error; πŸ”’
use tuwunel_core::error; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_core::itertools::Either::Left; πŸ”’
use tuwunel_core::itertools::Either::Right; πŸ”’
use tuwunel_core::itertools::Itertools; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::ReadyExt; πŸ”’
use tuwunel_core::utils::result::LogErr; πŸ”’
use tuwunel_core::utils::result::NotFound; πŸ”’
use tuwunel_core::utils::stream::TryBroadbandExt; πŸ”’
use tuwunel_core::utils::stream::TryIgnore; πŸ”’
use tuwunel_core::utils::stream::TryReadyExt; πŸ”’
use tuwunel_core::utils::stream::WidebandExt; πŸ”’
use tuwunel_database::Deserialized; πŸ”’
use tuwunel_database::Map; πŸ”’
use tuwunel_database::Txn; πŸ”’
use tuwunel_matrix::Event; πŸ”’
use tuwunel_matrix::Pdu; πŸ”’
use tuwunel_matrix::pdu::PduCount; πŸ”’
use tuwunel_matrix::pdu::PduEvent; πŸ”’
use tuwunel_matrix::pdu::PduId; πŸ”’
use tuwunel_matrix::pdu::RawPduId; πŸ”’
pub(crate) use self::summary::thread_bundle_mut; πŸ”’
use self::summary::counts_replies; πŸ”’
use self::summary::omit_thread_latest; πŸ”’
use self::summary::set_thread_count; πŸ”’
use self::summary::set_thread_latest; πŸ”’
use self::summary::thread_bundle; πŸ”’
use self::summary::thread_count; πŸ”’
use self::summary::thread_latest; πŸ”’
use self::summary::thread_reply_json; πŸ”’
use self::summary::update_thread_bundle; πŸ”’
use crate::integrity::undecodable_as; πŸ”’
use crate::rooms::pdu_metadata::RelationQuery; πŸ”’
use crate::rooms::timeline::ExtractRelatesTo; πŸ”’
use crate::rooms::timeline::Mapped; πŸ”’

ModulesΒ§

summary πŸ”’
The m.thread summary a thread root stores in its unsigned.

StructsΒ§

Data πŸ”’
ExtractThreadRelation πŸ”’
Recount πŸ”’
A thread root’s stored summary set against its replies.
RedactedRoot πŸ”’
A thread root rewritten for the redaction of one of its replies.
Service
ThreadRelation πŸ”’

EnumsΒ§

Latest πŸ”’
What became of a summary’s latest reply.

ConstantsΒ§

MAX_THREAD_HOPS πŸ”’
Maximum relation hops walked when resolving thread membership, per the Matrix v1.4 spec recommendation (also MSC3771/MSC3773).

FunctionsΒ§

activity_key πŸ”’
The key of the activity row listing a thread at count.
is_thread_reply πŸ”’
lists_participant πŸ”’
Reports whether a stored participant row names user_id.
root_id πŸ”’
thread_root πŸ”’
Returns the thread root named by borrowed event content.
unreadable_only πŸ”’
Keeps a failed root’s error only when the storage engine could not read it.