Skip to main content

Module pipeline

Module pipeline 

Source
Expand description

Presence update pipeline.

This module centralizes the write path for presence updates. It keeps the aggregation and timer logic in one place so the public Service surface remains small and the update flow is easy to review.

Re-exportsยง

use std::time::Duration; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use ruma::DeviceId; ๐Ÿ”’
use ruma::OwnedUserId; ๐Ÿ”’
use ruma::UInt; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use ruma::events::presence::PresenceEvent; ๐Ÿ”’
use ruma::presence::PresenceState; ๐Ÿ”’
use tokio::time::sleep; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug::INFO_SPAN_LEVEL; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::result::LogErr; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::utils::future::OptionFutureExt; ๐Ÿ”’
use tuwunel_core::utils::option::OptionExt; ๐Ÿ”’
use super::Ping; ๐Ÿ”’
use super::Service; ๐Ÿ”’
use super::TimerFired; ๐Ÿ”’
use super::aggregate; ๐Ÿ”’
use super::aggregate::StatusMsg; ๐Ÿ”’

Functionsยง

presence_timer ๐Ÿ”’