Expand description
Compact numeric identifiers for room and event data.
The service maps event IDs, state keys, state hashes, and room IDs into a shared global sequence space. Event IDs and state keys have paired forward and reverse mappings. State hashes have a partial forward index and no reverse mapping; room IDs have only a forward mapping.
Re-exportsยง
use std::borrow::Borrow;๐use std::sync::Arc;๐use futures::FutureExt;๐use futures::Stream;๐use futures::StreamExt;๐use futures::pin_mut;๐use ruma::EventId;๐use ruma::OwnedEventId;๐use ruma::OwnedRoomId;๐use ruma::RoomId;๐use ruma::events::StateEventType;๐use serde::Deserialize;๐use serde::Deserialize;๐use tuwunel_core::Err;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐use tuwunel_core::utils;๐use tuwunel_core::utils::IterStream;๐use tuwunel_core::utils::MutexMap;๐use tuwunel_core::utils::hash::sha256::Digest;๐use tuwunel_core::utils::stream::ReadyExt;๐use tuwunel_core::utils::stream::WidebandExt;๐use tuwunel_database::Deserialized;๐use tuwunel_database::Get;๐use tuwunel_database::Map;๐use tuwunel_database::Qry;๐use tuwunel_database::Txn;๐use tuwunel_matrix::StateKey;๐
Structsยง
- Creating ๐
- Serializes concurrent allocations so one identity maps to one short id.
- Data ๐
- Service
- Allocates and resolves compact identifiers used by room storage.
Type Aliasesยง
- Short
Event Id - Numeric identifier types shared with Matrix data structures.
- ShortId
- Numeric identifier types shared with Matrix data structures.
- Short
Room Id - Numeric identifier types shared with Matrix data structures.
- Short
State Hash - Compact identifier assigned to a complete room state hash.
- Short
State Key - Numeric identifier types shared with Matrix data structures.