Expand description
Constructs and signs local room events without persisting them.
The builder derives authorization events, depth, predecessor hashes, and unsigned prior-state data from the current room. Room-version rules then govern canonical hashing, signing, event IDs, and room IDs.
Re-exportsยง
use std::cmp;๐use futures::StreamExt;๐use futures::TryStreamExt;๐use ruma::CanonicalJsonObject;๐use ruma::CanonicalJsonValue;๐use ruma::MilliSecondsSinceUnixEpoch;๐use ruma::OwnedRoomId;๐use ruma::RoomId;๐use ruma::UserId;๐use ruma::events::TimelineEventType;๐use ruma::events::room::create::RoomCreateEventContent;๐use ruma::room_version_rules::RoomIdFormatVersion;๐use ruma::uint;๐use serde_json::value::to_raw_value;๐use tuwunel_core::Err;๐use tuwunel_core::Error;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐use tuwunel_core::utils::IterStream;๐use tuwunel_core::utils::ReadyExt;๐use tuwunel_core::utils::TryReadyExt;๐use tuwunel_core::utils::millis_since_unix_epoch;๐use tuwunel_core::utils::stream::TryIgnore;๐use tuwunel_core::utils::to_canonical_object;๐use tuwunel_matrix::event::Event;๐use tuwunel_matrix::pdu::EventHash;๐use tuwunel_matrix::pdu::PduBuilder;๐use tuwunel_matrix::pdu::PduEvent;๐use tuwunel_matrix::pdu::PrevEvents;๐use tuwunel_matrix::pdu::check_rules;๐use tuwunel_matrix::room::state::resolution::auth_check;๐use tuwunel_matrix::room_version;๐use super::RoomMutexGuard;๐