Expand description
Usersβ pushers and the notifications they deliver.
The service stores pushers, evaluates push rules for each appended event, keeps notification counts, and delivers to push gateways and by email.
Re-exportsΒ§
use std::collections::BTreeMap;πuse std::sync::Arc;πuse std::sync::LazyLock;πuse async_trait::async_trait;πuse futures::Stream;πuse futures::StreamExt;πuse futures::TryFutureExt;πuse futures::future::join;πuse ruma::DeviceId;πuse ruma::OwnedDeviceId;πuse ruma::OwnedEventId;πuse ruma::OwnedRoomId;πuse ruma::OwnedUserId;πuse ruma::RoomId;πuse ruma::UserId;πuse ruma::api::client::push::Pusher;πuse ruma::api::client::push::PusherKind;πuse ruma::api::client::push::set_pusher::v3::PusherAction;πuse ruma::events::AnySyncTimelineEvent;πuse ruma::events::GlobalAccountDataEventType;πuse ruma::events::push_rules::PushRulesEvent;πuse ruma::events::room::power_levels::RoomPowerLevels;πuse ruma::push::Action;πuse ruma::push::FlattenedJson;πuse ruma::push::PushConditionPowerLevelsCtx;πuse ruma::push::PushConditionRoomCtx;πuse ruma::push::Ruleset;πuse ruma::serde::Raw;πuse ruma::uint;πuse serde::Deserialize;πuse serde::Deserialize;πuse tracing::Level;πuse tuwunel_core::Err;πuse tuwunel_core::Result;πuse tuwunel_core::err;πuse tuwunel_core::implement;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::MutexMap;πuse tuwunel_core::utils::future::TryExtExt;πuse tuwunel_core::utils::result::ErrLog;πuse tuwunel_core::utils::stream::BroadbandExt;πuse tuwunel_core::utils::stream::IterStream;πuse tuwunel_core::utils::stream::ReadyExt;πuse tuwunel_core::utils::stream::TryIgnore;πuse tuwunel_core::utils::stream::WidebandExt;πuse tuwunel_database::Database;πuse tuwunel_database::Deserialized;πuse tuwunel_database::Ignore;πuse tuwunel_database::Interfix;πuse tuwunel_database::Map;πuse tuwunel_matrix::Event;πuse url::Url;πuse self::badge::SentBadges;πpub use self::append::Notified;pub use self::email::Outcome as EmailOutcome;pub use self::suppressed::SuppressedPushes;pub use self::suppressed::SuppressedRooms;
ModulesΒ§
- append π
- badge π
- Last-delivered push badge counts.
- email π
- Email notifications for the
emailpusher kind. - notification π
- redact π
- Takes a redacted event back out of the unread counts it raised.
- request π
- send π
- suppressed π
- Deferred push suppression queues.
StructsΒ§
- Data π
- Evaluate
- The inputs for evaluating one userβs push rules against one event.
- Extract
Relates πTo - InReply
To π - Relates
To π - Service
- Stores pushers and delivers the notifications they ask for.
ConstantsΒ§
- IN_
REPLY_ πTO - MSC3664 matches a reply as if it carried a relation of this type.
StaticsΒ§
- NO_
RELATED_ πEVENTS - Shared by every event that resolves no relations, which is every event while MSC3664 evaluation is disabled.
Type AliasesΒ§
- Count
Mutex π - Guards one userβs counter in one room across a read-modify-write.
- Related
Events π - The events an event relates to, keyed by relation type, for MSC3664.