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Β§
- Create
Inputs π
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 π