Skip to main content

Module token_expiry

Module token_expiry 

Source

Re-exportsยง

use std::pin::pin; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use futures::TryStreamExt; ๐Ÿ”’
use ruma::DeviceId; ๐Ÿ”’
use ruma::UserId; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_warn; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
use crate::Services; ๐Ÿ”’
use crate::integrity::token_expiry::Row; ๐Ÿ”’
use crate::integrity::token_expiry::Token; ๐Ÿ”’
use crate::integrity::token_expiry::origin; ๐Ÿ”’
use crate::integrity::token_expiry::rows; ๐Ÿ”’
use crate::integrity::token_expiry::token; ๐Ÿ”’

Structsยง

Tally ๐Ÿ”’
Counts of what one walk of the origin column did.

Enumsยง

Mode ๐Ÿ”’
What a walk does to the token an origin row names.
Restore ๐Ÿ”’
Whether the restore of adopted expiries has work on this boot.

Constantsยง

ADOPT_MARKER ๐Ÿ”’
Stamped once every origin expiry has been adopted.
RESTORE_MARKER ๐Ÿ”’
Stamped once every expiry adopted without a provider has been restored.

Functionsยง

adopt ๐Ÿ”’
Adopts the expiries an opened origin column records, returning whether the pass is finished with it.
apply_one ๐Ÿ”’
Applies the mode to the token one origin row names, reporting whether the row was acted on.
migrate ๐Ÿ”’
Adopts the access-token expiry a foreign database keeps in a column of its own, returning whether the pass is finished with that column.
probe ๐Ÿ”’
Whether the origin column holds a row the adoption could still carry.
restore ๐Ÿ”’
Restores the origin lifetime of each session an earlier release adopted with no provider to refresh it against.
restore_due ๐Ÿ”’
Decides whether the restore walks on this boot, opening the origin column if so.
skip ๐Ÿ”’
walk ๐Ÿ”’
Walks the origin column once, applying the mode to every row.