Expand description
The SpacetimeDB Rust client SDK, which enables native Rust applications to communicate with SpacetimeDB modules.
This library depends on a set of module-specific definitions autogenerated by the SpacetimeDB CLI. See the SpacetimeDB Rust client SDK reference for more oh how to generate these bindings.
Re-exports§
pub use db_context::DbContext;pub use error::Error;pub use error::Result;pub use event::Event;pub use event::ReducerEvent;pub use event::Status;pub use table::Table;pub use table::TableWithPrimaryKey;
Modules§
- credentials
- Utilities for saving and re-using credentials.
- db_
context - The
DbContexttrait, which mediates access to a remote module. - error
- event
- The
Eventenum, which encodes the different things that can happen to cause callbacks to run with anEventContext. - table
- The
TableandTableWithPrimaryKeytraits, which allow certain simple queries of the client cache, and expose row callbacks which run when subscribed rows are inserted, deleted or updated.
Structs§
- Connection
Id - A unique identifier for a client connection to a SpacetimeDB database.
- DbConnection
Builder - A builder-pattern constructor for a
DbConnectionconnection to the moduleM. - Identity
- An
Identityfor something interacting with the database. - Time
Duration - A span or delta in time, measured in microseconds.
- Timestamp
- A point in time, measured in microseconds since the Unix epoch.
Enums§
- Compression
- A specification of either a desired or decided compression algorithm.
- Schedule
At - When a scheduled reducer should execute, either at a specific point in time, or at regular intervals for repeating schedules.