Crate bevy_spacetimedb

Source
Expand description

A bevy plugin for SpacetimeDB.

Structs§

DeleteEvent
An event that is triggered when a row is deleted from a table.
InsertEvent
An event that is triggered when a row is inserted into a table.
InsertUpdateEvent
An event that is triggered when a row is inserted or updated in a table.
ReducerResultEvent
An event that is triggered when a reducer is invoked.
StdbConnectedEvent
An event that is triggered when a connection to SpacetimeDB is established.
StdbConnection
A connection to the SpacetimeDB server, as a Bevy resource. This struct is a wrapper around a concrete-typed DbContext in your auto-generated.
StdbConnectionErrorEvent
An event that is triggered when a connection to SpacetimeDB encounters an error.
StdbDisconnectedEvent
An event that is triggered when a connection to SpacetimeDB is lost.
StdbPlugin
The plugin for connecting SpacetimeDB with your bevy application.
TableEvents
Passed into StdbPlugin::add_table to determine which table events to register.
UpdateEvent
An event that is triggered when a row is updated in a table.

Traits§

AddEventChannelAppExtensions
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
RegisterableReducerEvent
Trait for making a reducer registerable into the bevy application.

Type Aliases§

ReadDeleteEvent
A type alias for a Bevy event reader for DeleteEvent.
ReadInsertEvent
A type alias for a Bevy event reader for InsertEvent.
ReadInsertUpdateEvent
A type alias for a Bevy event reader for InsertUpdateEvent.
ReadReducerEvent
A type alias for a Bevy event reader for ReducerResultEvent.
ReadStdbConnectedEvent
A type alias for a Bevy event reader for StdbConnectedEvent.
ReadStdbConnectionErrorEvent
A type alias for a Bevy event reader for StdbConnectionErrorEvent.
ReadStdbDisconnectedEvent
A type alias for a Bevy event reader for StdbDisconnectedEvent.
ReadUpdateEvent
A type alias for a Bevy event reader for UpdateEvent.

Derive Macros§

RegisterReducerEvent
This macro automatically generates the boilerplate code needed to register a reducer with the StdbPlugin.