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 π