Skip to main content

Crate amethystate

Crate amethystate 

Source
Expand description

Persistent reactive state for Rust GUI apps.

Re-exports§

pub use reactive::AmeState;
pub use reactive::AmeStateNode;
pub use reactive::Field;
pub use reactive::LocalScope;
pub use reactive::ReactiveCell;
pub use reactive::ReactiveMap;
pub use reactive::ReadOnlyField;
pub use reactive::StoreSubscription;
pub use reactive::WritableField;
pub use store::AmeStateSlice;
pub use store::StateScope;
pub use store::StorageResult;
pub use store::StoreEvent;
pub use store::StoreOp;
pub use store::SubscriptionKind;
pub use store::builder::StoreBuilder;
pub use store::config::StoreConfig;
pub use store::default::DefaultStore;
pub use store::join_path;
pub use migration::MigrationContext;
pub use migration::MigrationError;
pub use migration::MigrationPlan;
pub use migration::MigrationReport;
pub use store::Store;
pub use inventory;
pub use serde;
pub use uuid;

Modules§

core
errors
migration
observability
reactive
store
stores

Macros§

migrate_field

Structs§

Change
InterceptDisposer
Pipeline
ReactiveScope
ReadOnly
ReadOnlyMode
SignalSubscription
Dropping this ends the subscription, so it has to be held for as long as the callback should keep firing.
Writable
WritableMode

Enums§

MapChange

Traits§

AccessMode
IntoGlobalStore
IntoPipeline
Reactive
Something you can read and subscribe to.
ReactiveMapKey
ReactiveMapValue

Functions§

global_store
init_global

Type Aliases§

AmeData
MigrationResult

Attribute Macros§

amethystate
Generates a persistent state wrapper for a struct.
migrate
Transforms a function into a migration step between two state versions.

Derive Macros§

AmeType
Derives the AmeType trait for a struct, providing compile-time schema hashing and identification.