Skip to main content

Module data

Module data 

Source
Expand description

Persistent global counter and database version state.

The counter records sequence numbers before handing them to writers and tracks their ordered retirement through permits. The same map stores the database schema version used by migrations.

Re-exportsยง

use std::ops::Range; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use tokio::sync::watch::Sender; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils; ๐Ÿ”’
use tuwunel_core::utils::two_phase_counter::Counter as TwoPhaseCounter; ๐Ÿ”’
use tuwunel_core::utils::two_phase_counter::Permit as TwoPhasePermit; ๐Ÿ”’
use tuwunel_database::Database; ๐Ÿ”’
use tuwunel_database::Deserialized; ๐Ÿ”’
use tuwunel_database::Handle; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’

Structsยง

Data
Owns persistent global state and the two-phase sequence counter.

Constantsยง

COUNTER ๐Ÿ”’

Type Aliasesยง

Callback ๐Ÿ”’
Counter ๐Ÿ”’
Permit ๐Ÿ”’
Permit guarding one dispatched global sequence number.