Skip to main content

SQLiteSerializableAdmission

Struct SQLiteSerializableAdmission 

Source
pub struct SQLiteSerializableAdmission { /* private fields */ }
Expand description

An exclusive, short-lived SSI admission over the database’s auxiliary store. Every file-backed opener uses SQLite’s process-shared writer admission; in-memory sessions share their parent’s retained auxiliary pool. Dropping this guard discards unpersisted changes and releases admission.

The caller owns participant liveness, receipt reconciliation and snapshot/publication ordering. Persist admission before exposing a participant, and persist prepared receipt bindings before publishing records, then reacquire admission while publishing and resolving them. A failed persistence call does not establish a physical record outcome. This transport does not enable SERIALIZABLE SQL by itself.

Implementations§

Source§

impl SQLiteSerializableAdmission

Source

pub fn graph(&self) -> &SerializableGraph

Source

pub fn graph_mut(&mut self) -> &mut SerializableGraph

Source

pub fn persist(self, control: &StorageReadControl) -> VersionResult<()>

Atomically retain changed checkpoint records and release admission. An unchanged checkpoint needs no record writes. Cancellation or a failed BLOB write rolls back the auxiliary transaction. A failed COMMIT may be uncertain; callers must reconcile physical receipts before classifying a publication or admitting another data snapshot.

Trait Implementations§

Source§

impl Drop for SQLiteSerializableAdmission

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.