Skip to main content

Module build

Module build 

Source
Expand description

Builds and appends locally authored room events.

Event construction, authorization, signing, state advancement, and timeline insertion are coordinated under the caller’s room state guard. Successfully persisted events are then queued for federation to participating servers.

Re-exportsΒ§

use std::collections::HashSet; πŸ”’
use std::iter::once; πŸ”’
use std::time::Duration; πŸ”’
use futures::FutureExt; πŸ”’
use futures::StreamExt; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::MilliSecondsSinceUnixEpoch; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::OwnedServerName; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UserId; πŸ”’
use ruma::events::TimelineEventType; πŸ”’
use ruma::events::room::member::MembershipState; πŸ”’
use ruma::events::room::member::RoomMemberEventContent; πŸ”’
use ruma::room_id; πŸ”’
use ruma::serde::Raw; πŸ”’
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::IterStream; πŸ”’
use tuwunel_core::utils::random_string; πŸ”’
use tuwunel_core::utils::result::NotFound; πŸ”’
use tuwunel_core::utils::time::now; πŸ”’
use tuwunel_matrix::StateKey; πŸ”’
use tuwunel_matrix::event::Event; πŸ”’
use tuwunel_matrix::pdu::PduBuilder; πŸ”’
use tuwunel_matrix::pdu::PduEvent; πŸ”’
use super::RoomMutexGuard; πŸ”’

StructsΒ§

CreateInputs πŸ”’

EnumsΒ§

Collision
What a hashed-ID create does when its room ID is already taken.

ConstantsΒ§

CREATE_TIMESTAMP_SKEW πŸ”’
NONCE_KEY πŸ”’
NONCE_LENGTH πŸ”’

FunctionsΒ§

ahead_of_clock πŸ”’
with_nonce πŸ”’