Skip to main content

Module admin

Module admin 

Source

Re-exportsยง

use std::collections::BTreeMap; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex as StdMutex; ๐Ÿ”’
use std::sync::RwLock as StdRwLock; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use async_trait::async_trait; ๐Ÿ”’
pub use context::Context;
pub use create::create_admin_room;
use futures::TryFutureExt; ๐Ÿ”’
use ruma::OwnedEventId; ๐Ÿ”’
use ruma::OwnedRoomAliasId; ๐Ÿ”’
use ruma::OwnedRoomId; ๐Ÿ”’
use ruma::OwnedUserId; ๐Ÿ”’
use ruma::RoomId; ๐Ÿ”’
use ruma::RoomOrAliasId; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use tokio::sync::mpsc::Receiver; ๐Ÿ”’
use tokio::sync::mpsc::Sender; ๐Ÿ”’
use tokio::sync::mpsc::channel; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::error::default_log; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils::ReadyExt; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_matrix::Event; ๐Ÿ”’
use tuwunel_matrix::event::MsgType; ๐Ÿ”’
use crate::rooms::state::RoomMutexGuard; ๐Ÿ”’

Modulesยง

attach ๐Ÿ”’
console
context
create
execute ๐Ÿ”’
grant ๐Ÿ”’
notices ๐Ÿ”’
processor ๐Ÿ”’
register ๐Ÿ”’
Synapse-compatible shared-secret registration backend.
respond ๐Ÿ”’

Structsยง

CommandInput
Inputs to a command: its multi-line text, the event to reply to, and who sent it.
Service

Enumsยง

CommandOutput
Textual output of a completed command. Markdown is the norm; Plain carries clap usage and error text, which must never be markdown-rendered.
Queue ๐Ÿ”’
State of the command queueโ€™s sending half.

Constantsยง

COMMAND_QUEUE_LIMIT ๐Ÿ”’
Maximum number of commands which can be queued for dispatch.

Traitsยง

Command
Root of a clap command tree installed by a downstream crate.

Type Aliasesยง

ProcessorResult
Carries a rendered command outcome while preserving its status.