Skip to main content

Module badge

Module badge 

Source
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ยง

SentBadges ๐Ÿ”’

Type Aliasesยง

Badges ๐Ÿ”’