Skip to main content

Module email_bindings

Module email_bindings 

Source
Expand description

Email bindings a foreign database keeps in a column of its own.

Some databases hold one address per localpart there rather than in the third-party identifier store this server reads, so until the binding is adopted the address looks unclaimed here.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::str::from_utf8; πŸ”’
use std::sync::Arc; πŸ”’
use futures::FutureExt; πŸ”’
use futures::Stream; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::future::BoxFuture; πŸ”’
use futures::stream::once; πŸ”’
use ruma::OwnedUserId; πŸ”’
use ruma::ServerName; πŸ”’
use ruma::UserId; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::result::NotFound; πŸ”’
use tuwunel_core::smallstr::SmallString; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::IterStream; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_core::utils::stream::TryBroadbandExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use tuwunel_database::Map; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::Summary; πŸ”’
use super::leading_record; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’
use crate::migrations::ADOPT_EMAIL_BINDINGS; πŸ”’
use crate::migrations::local_user_id; πŸ”’
use crate::migrations::marker_present; πŸ”’
use crate::threepid::canonicalize_email; πŸ”’

EnumsΒ§

Bindable πŸ”’
What a foreign binding’s account and address are here, as the adoption reads them.
Finding
A foreign binding whose address is not bound to its account here, or a row this check cannot read.
Row πŸ”’
One row of the foreign binding column, decoded.

ConstantsΒ§

COLUMN πŸ”’

StaticsΒ§

CHECK πŸ”’

FunctionsΒ§

bindable πŸ”’
Reads whether a binding’s account is one an address can be bound to, and the address’s canonical form.
column
Opens the foreign binding column, if the database holds one.
findings πŸ”’
owner πŸ”’
row πŸ”’
rows πŸ”’
Streams every row of the foreign binding column, decoded.
scan
Streams each foreign binding whose address is not bound to its account here, only while the adoption is unstamped.
verdict πŸ”’
walk πŸ”’

Type AliasesΒ§

Column πŸ”’
Findings πŸ”’
Text πŸ”’