Skip to main content

Crate aequora_scope

Crate aequora_scope 

Source
Expand description

Authorized, versioned, database-neutral synchronization datasets.

A scope is a server-issued authorization contract, never an arbitrary client query. This crate defines identity, cursor validation, resolver, membership, projection, subscription, and transition semantics without importing a database or transport implementation.

Structs§

DatasetPartitionId
Stable, bounded partition selected by a server-owned scope definition.
EvaluatedJournalEntry
One authoritative journal entry evaluated by a server-owned scope filter.
FilteredScopePage
Filtered delivery plus a watermark through all evaluated entries, including excluded ones.
LocalScopeState
Serializable reference model used by adapters and compliance tests.
MembershipRecord
One active entity-to-scope reference.
ProjectionVersion
Versioned projection namespace. Different field visibility must never be merged accidentally.
ResolvedScope
Complete authoritative binding returned by a registered resolver.
ScopeBootstrapPlan
Scope-bound bootstrap plan; activation still requires an atomic ScopeTransition.
ScopeCursor
A journal watermark meaningful only with its complete scope binding.
ScopeDefinitionId
Stable application-assigned scope-definition identity. Zero is reserved.
ScopeDescriptor
Canonical server-owned dataset descriptor; it contains no raw SQL or executable predicate.
ScopeGeneration
Incompatible authority timeline generation for one scope.
ScopePrincipal
Trusted authenticated identity supplied to a scope resolver by the server boundary.
ScopeRegistry
Definition registry that rejects duplicate identifiers and unknown client requests.
ScopeRemoval
Scope-local removal, deliberately distinct from a domain tombstone.
ScopeRequest
Bounded client request for one registered definition. Parameters are opaque to the core.
ScopeStatus
Payload-free status suitable for a negotiated scope control message.
ScopeTransition
Retry-stable atomic transition input for a local adapter.
ScopeTransitionId
Retry-stable identity of one scope transition.
ScopeTransitionOutcome
Result of one idempotent transition application.
ScopeVersion
Version of membership rules for one scope.
Subscription
Durable relationship between a client and one resolved scope.
SubscriptionId
Durable identity of one client subscription.

Enums§

CursorValidity
Server result for one bound cursor.
LocalRetentionPolicy
Local retention behavior for data leaving an active scope.
MembershipDecision
Deterministic membership result for an authoritative entity/event.
PendingIntentDisposition
Explicit disposition of pending intent affected by authorization loss.
ScopeBootstrapMode
Safe bootstrap strategy for a version transition.
ScopeError
Scope semantic failure.
ScopeRemovalReason
Why membership ended without deleting the authoritative domain entity.
ScopeServerState
Current server view of one subscription.
ScopeTransitionInstruction
Versioned server instruction. Legacy peers safely map non-continue instructions to full resync.
ScopeTransitionKind
Coherent transition category.
SubscriptionState
Durable client subscription lifecycle.

Traits§

MembershipEvaluator
Pure application membership boundary.
ProjectionRule
Authorized projection boundary. None means the entity must not be delivered.
ScopeResolver
Server-owned asynchronous scope resolution contract.
ScopeResourceAuthorizer
Authorization hook for blobs, integrity manifests, search indexes, or other scope-bound resources. Possessing a stale resource identifier never grants access by itself.

Functions§

project_filtered_page
Applies a deterministic authorized projection while advancing through intentionally excluded journal entries.