Expand description
Autopilot cluster entity framework.
ⓘ
use cruster::{entity, entity_impl};
use cruster::error::ClusterError;
struct NotSerializable {
value: std::cell::Cell<i32>,
}
#[entity]
#[derive(Clone)]
struct BadEntity;
#[entity_impl]
impl BadEntity {
#[workflow]
async fn bad(&self, value: NotSerializable) -> Result<(), ClusterError> {
let _ = value;
Ok(())
}
}Modules§
- config
- cron
- Cluster cron job scheduling.
- entity
- entity_
client - entity_
manager - entity_
reaper - entity_
resource - envelope
- error
- hash
- message
- message_
storage - metrics
- prelude
- Prelude module for convenient glob imports.
- reply
- resource_
map - runner
- runner_
health - runner_
storage - runners
- schema
- Cluster annotations for RPC definitions.
- shard_
assigner - sharding
- sharding_
impl - singleton
- Singleton registration helper.
- snowflake
- state_
guard - State mutation guard for entity state access.
- storage
- testing
- In-memory test cluster for unit and integration testing.
- transport
- types
Attribute Macros§
- entity
- Re-export proc macros for entity definition. Attribute macro for entity struct definitions.
- entity_
impl - Re-export proc macros for entity definition. Attribute macro for entity impl blocks.
- entity_
trait - Re-export proc macros for entity definition. Attribute macro for trait capability struct definitions.
- entity_
trait_ impl - Re-export proc macros for entity definition. Attribute macro for trait capability impl blocks.