Expand description
A bevy plugin for SpacetimeDB.
Structs§
- Delete
Event - An event that is triggered when a row is deleted from a table.
- Insert
Event - An event that is triggered when a row is inserted into a table.
- Insert
Update Event - An event that is triggered when a row is inserted or updated in a table.
- Reducer
Result Event - An event that is triggered when a reducer is invoked.
- Stdb
Connected Event - An event that is triggered when a connection to SpacetimeDB is established.
- Stdb
Connection - A connection to the SpacetimeDB server, as a Bevy resource.
This struct is a wrapper around a concrete-typed
DbContext
in your auto-generated. - Stdb
Connection Error Event - An event that is triggered when a connection to SpacetimeDB encounters an error.
- Stdb
Disconnected Event - An event that is triggered when a connection to SpacetimeDB is lost.
- Stdb
Plugin - The plugin for connecting SpacetimeDB with your bevy application.
- Table
Events - Passed into
StdbPlugin::add_table
to determine which table events to register. - Update
Event - An event that is triggered when a row is updated in a table.
Traits§
- AddEvent
Channel AppExtensions - Allows to register an event channel backed by a
mpsc::Receiver<T>
. This is useful in multithreaded applications where you want to send events from a different thread - Registerable
Reducer Event - Trait for making a reducer registerable into the bevy application.
Type Aliases§
- Read
Delete Event - A type alias for a Bevy event reader for DeleteEvent
. - Read
Insert Event - A type alias for a Bevy event reader for InsertEvent
. - Read
Insert Update Event - A type alias for a Bevy event reader for InsertUpdateEvent
. - Read
Reducer Event - A type alias for a Bevy event reader for ReducerResultEvent
. - Read
Stdb Connected Event - A type alias for a Bevy event reader for StdbConnectedEvent.
- Read
Stdb Connection Error Event - A type alias for a Bevy event reader for StdbConnectionErrorEvent.
- Read
Stdb Disconnected Event - A type alias for a Bevy event reader for StdbDisconnectedEvent.
- Read
Update Event - A type alias for a Bevy event reader for UpdateEvent
.
Derive Macros§
- Register
Reducer Event - This macro automatically generates the boilerplate code needed to register a reducer
with the
StdbPlugin
.