Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JulienLavocat/bevy_spacetimedb
/ functions
Functions
38 in github.com/JulienLavocat/bevy_spacetimedb
⨍
Functions
38
◇
Types & classes
19
↓ 6 callers
Method
add_message_channel
(&mut self, receiver: Receiver<T>)
bevy_spacetimedb/src/channel_receiver.rs:20
↓ 3 callers
Method
on_insert
Register a Bevy message of type InsertMessage<TRow> for the `on_insert` message on the provided table.
bevy_spacetimedb/src/tables.rs:157
↓ 2 callers
Method
db
Access to tables in the client cache, which stores a read-only replica of the remote database state.
bevy_spacetimedb/src/stdb_connection.rs:21
↓ 2 callers
Method
on_delete
Register a Bevy message of type DeleteMessage<TRow> for the `on_delete` message on the provided table.
bevy_spacetimedb/src/tables.rs:185
↓ 2 callers
Method
on_update
Register a Bevy message of type UpdateMessage<TRow> for the `on_update` message on the provided table.
bevy_spacetimedb/src/tables.rs:212
↓ 2 callers
Method
reducers
Access to reducers defined by the module.
bevy_spacetimedb/src/stdb_connection.rs:26
↓ 2 callers
Method
with_compression
Sets the compression used when a certain threshold in the message size has been reached. The current threshold used by the host is 1KiB for the entir
bevy_spacetimedb/src/plugin.rs:234
↓ 2 callers
Method
with_light_mode
Sets whether the "light" mode is used. The light mode is meant for clients which are network-bandwidth constrained and results in non-callers receivi
bevy_spacetimedb/src/plugin.rs:248
↓ 2 callers
Method
with_module_name
Set the name or identity of the remote module.
bevy_spacetimedb/src/plugin.rs:202
↓ 2 callers
Method
with_token
Supply a token with which to authenticate with the remote database. `token` should be an OpenID Connect compliant JSON Web Token. If this method is
bevy_spacetimedb/src/plugin.rs:224
↓ 2 callers
Method
with_uri
Set the URI of the SpacetimeDB host which is running the remote module. The URI must have either no scheme or one of the schemes `http`, `https`, `ws
bevy_spacetimedb/src/plugin.rs:210
↓ 1 callers
Method
add_partial_table
Registers a table for the bevy application with the specified messages in the `messages` parameter.
bevy_spacetimedb/src/tables.rs:86
↓ 1 callers
Method
add_partial_table_without_pk
Registers a table without primary key for the bevy application with the specified messages in the `messages` parameter.
bevy_spacetimedb/src/tables.rs:130
↓ 1 callers
Method
build
(&self, app: &mut App)
bevy_spacetimedb/src/plugin.rs:268
↓ 1 callers
Method
on_insert_update
Register a Bevy message of type InsertUpdateMessage<TRow> for the `on_insert` and `on_update` messages on the provided table.
bevy_spacetimedb/src/tables.rs:243
Method
add_procedure
Registers a procedure message <E> for the bevy application.
bevy_spacetimedb/src/procedures.rs:23
Method
add_reducer
Registers a reducer message <E> for the bevy application.
bevy_spacetimedb/src/reducers.rs:23
Method
add_table
Registers a table for the bevy application with all messages enabled.
bevy_spacetimedb/src/tables.rs:76
Method
add_table_without_pk
Registers a table without primary key for the bevy application with all messages enabled.
bevy_spacetimedb/src/tables.rs:120
Method
all
Register all table messages
bevy_spacetimedb/src/tables.rs:33
Function
channel_to_message
( receiver: Res<ChannelReceiver<T>>, mut writer: MessageWriter<T>, )
bevy_spacetimedb/src/channel_receiver.rs:33
Method
conn
Access to the underlying connection, it's not recommended to use this method directly.
bevy_spacetimedb/src/stdb_connection.rs:71
Function
connect_with_token
Connect to SpacetimeDB with the given token (for delayed connection mode) Call this from an exclusive system (system with `world: &mut World` paramet
bevy_spacetimedb/src/plugin.rs:58
Method
connection_id
Get the connection ID.
bevy_spacetimedb/src/stdb_connection.rs:66
Method
default
()
bevy_spacetimedb/src/plugin.rs:170
Method
disconnect
Close the connection.
bevy_spacetimedb/src/stdb_connection.rs:56
Method
identity
Get the [`Identity`] of this connection.
bevy_spacetimedb/src/stdb_connection.rs:41
Method
is_active
Returns `true` if the connection is active, i.e. has not yet disconnected.
bevy_spacetimedb/src/stdb_connection.rs:51
Method
new
Creates a new reducer result message.
bevy_spacetimedb/src/messages.rs:68
Method
new
Create a new connection to the SpacetimeDB server.
bevy_spacetimedb/src/stdb_connection.rs:14
Method
no_update
()
bevy_spacetimedb/src/tables.rs:41
Method
procedures
(&self)
bevy_spacetimedb/src/stdb_connection.rs:30
Function
register_reducer_message_derive
(input: TokenStream)
macros/src/lib.rs:25
Method
set_reducer_flags
Access to setters for per-reducer flags.
bevy_spacetimedb/src/stdb_connection.rs:61
Method
subscription_builder
Get a builder-pattern constructor for subscribing to queries, causing matching rows to be replicated into the client cache.
bevy_spacetimedb/src/stdb_connection.rs:36
Method
try_identity
Get the [`Identity`] of this connection.
bevy_spacetimedb/src/stdb_connection.rs:46
Method
with_delayed_connect
Enable delayed connection mode. The connection will not be started during plugin build. You must manually call `connect_with_token()` later. This is
bevy_spacetimedb/src/plugin.rs:257
Method
with_run_fn
The function that the connection will run with. The recommended function is `DbConnection::run_threaded`. Other function are not tested, they may not
bevy_spacetimedb/src/plugin.rs:196