Skip to main content

Module utils

Module utils 

Source

Re-exportsยง

use std::borrow::Borrow; ๐Ÿ”’
use std::iter::once; ๐Ÿ”’
use futures::FutureExt; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::StreamExt; ๐Ÿ”’
use futures::future::join; ๐Ÿ”’
use futures::future::join3; ๐Ÿ”’
use futures::future::try_join; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use ruma::EventId; ๐Ÿ”’
use ruma::OwnedEventId; ๐Ÿ”’
use ruma::OwnedRoomId; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use ruma::RoomVersionId; ๐Ÿ”’
use ruma::ServerName; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde_json::value::RawValue as RawJsonValue; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::at; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::is_false; ๐Ÿ”’
use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_core::utils::FutureBoolExt; ๐Ÿ”’
use tuwunel_core::utils::IterStream; ๐Ÿ”’
use tuwunel_core::utils::ReadyExt; ๐Ÿ”’
use tuwunel_core::utils::future::ReadyBoolExt; ๐Ÿ”’
use tuwunel_core::utils::option::OptionExt; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_service::Services; ๐Ÿ”’
use tuwunel_service::rooms::short::ShortEventId; ๐Ÿ”’

Structsยง

AccessCheck ๐Ÿ”’

Functionsยง

auth_chain_ids ๐Ÿ”’
auth_chain_pdu ๐Ÿ”’
Reads an auth chain event for a federation response, or omits it.
require_event_in_room ๐Ÿ”’
require_known_room ๐Ÿ”’
short_auth_chain ๐Ÿ”’
state_at_event ๐Ÿ”’
Reads the state of a room at an event for a federation response.
state_pdu ๐Ÿ”’
Reads a state event for a federation response, or omits it.
walk_auth_chain ๐Ÿ”’
Streams the auth chain of the state a federation response serves.
walk_state_auth_chain ๐Ÿ”’
Streams the auth chain of the state at an event and of the event itself.

Type Aliasesยง

StateAtEvent ๐Ÿ”’