Weave documentation
Rust referenceloom-mandate

loom-mandate · store

Source declarations, signatures and documentation for store.

Source: sigil/weave/tools/loom-mandate/src/store.rs. SHA-256: 708887849f083ee96a79e33daa1518299b6859960c91ce7e1a546c7acd46f3b3.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

store::MANDATE_LENS

Canonical Lens database name.

pub const MANDATE_LENS: &str;

Source line: 8.

store::StoreError

Errors raised by the store.

#[derive(Debug, Error)]
pub enum StoreError {
    /// Underlying Weave error.
    #[error("weave error: {0}")]
    Weave(String),
    /// Serialization failure.
    #[error("serialization: {0}")]
    Json(#[from] serde_json::Error),
}

Source line: 12.

store::MandateStore

Read/write handle.

pub struct MandateStore<'a> {

}

Source line: 42.

store::MandateStore<'a>::open

Idempotently open the mandates Lens.

pub async fn open(node: &'a WeaveNode) -> Result<Self, StoreError>;

Source line: 48.

store::MandateStore<'a>::put_mandate

Persist a mandate (overwrites by id).

pub async fn put_mandate(&self, mandate: &Mandate) -> Result<(), StoreError>;

Source line: 54.

store::MandateStore<'a>::put_revocation

Persist a revocation entry.

pub async fn put_revocation(&self, rev: &RevocationEntry) -> Result<(), StoreError>;

Source line: 62.

store::MandateStore<'a>::list_mandates

Range-scan every mandate in the Lens.

pub async fn list_mandates(&self) -> Result<Vec<Mandate>, StoreError>;

Source line: 70.

store::MandateStore<'a>::list_revocations

Range-scan every revocation in the Lens.

pub async fn list_revocations(&self) -> Result<Vec<RevocationEntry>, StoreError>;

Source line: 105.

On this page