Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Actor
✓ use tea_actorx_core::Actor;
Define and use a simple actor with the TEA SDK.
use tea_actorx_core::Actor;
struct MyActor;
impl Actor for MyActor {
type Message = String;
type Response = String;
fn handle(&self, msg: Self::Message) -> Self::Response {
format!("Hello, {}", msg)
}
}
fn main() {
let actor = MyActor;
let response = actor.handle("World".to_string());
println!("{}", response);
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.0-dev.22latest on crates.io
Audit
Dependencies
No dependency data recorded yet.