Skip to main content

Module checked

Module checked 

Source
Expand description

Check-only reads of timeline events.

The live readers panic on an eventid_pduid mapping of the wrong length, so integrity checks read through here, where that mapping is Mapped::Damaged. get_checked reads as get does, racing the accepted branch (the mapping, then the row) against the outlier copy, so a check reports a damaged mapping only where get would panic and misses it when an outlier copy is found first. get_checked_keeping reads the accepted branch before the outlier as get_room_version does, so it always reports one. A copy is decoded as a release build of the live readers decodes it, without a debug build’s assertion that no further record follows the event’s.

Re-exportsΒ§

use futures::FutureExt; πŸ”’
use futures::TryFutureExt; πŸ”’
use futures::future::try_join; πŸ”’
use ruma::EventId; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use tuwunel_core::Error; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_core::result::NotFound; πŸ”’
use super::RawPduId; πŸ”’
use super::Service; πŸ”’
use crate::integrity::leading_json; πŸ”’

EnumsΒ§

Mapped πŸ”’
What a check-only read found, or damage on its way there.
Position πŸ”’
Where the timeline places an event, its mapping decoded without trusting it.