Crate spacetimedb_sdk

Crate spacetimedb_sdk 

Source
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 DbContext trait, which mediates access to a remote module.
error
event
The Event enum, which encodes the different things that can happen to cause callbacks to run with an EventContext.
table
The Table and TableWithPrimaryKey traits, which allow certain simple queries of the client cache, and expose row callbacks which run when subscribed rows are inserted, deleted or updated.

Structs§

ConnectionId
A unique identifier for a client connection to a SpacetimeDB database.
DbConnectionBuilder
A builder-pattern constructor for a DbConnection connection to the module M.
Identity
An Identity for something interacting with the database.
TimeDuration
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.
ScheduleAt
When a scheduled reducer should execute, either at a specific point in time, or at regular intervals for repeating schedules.

Traits§

SubscriptionHandle

Type Aliases§

i256
A 256-bit signed integer type.
u256
A 256-bit unsigned integer type.