Expand description
Last-delivered push badge counts.
Remembers, per user and pushkey, the unread total the push gateway last accepted. Intentionally in-memory only: an absent entry forces the next counts-only refresh to send, so a restart reconciles every pusher with a badge this server has never observed. Reaping on pusher delete, replacement, and device removal bounds the map near the live pusher population.
Re-exportsยง
use std::collections::BTreeMap;๐use std::collections::HashMap;๐use std::sync::Mutex;๐use std::sync::MutexGuard;๐use std::sync::PoisonError;๐use ruma::OwnedUserId;๐use ruma::UInt;๐use ruma::UserId;๐use tuwunel_core::implement;๐
Structsยง
- Sent
Badges ๐
Type Aliasesยง
- Badges ๐