pub trait IdentityFactory:
Send
+ Sync
+ 'static {
// Required method
fn reconstruct(
&self,
actor_json: &str,
) -> Result<Box<dyn Actor>, IdentityError>;
}Expand description
Re-export identity port traits and JSON stubs from photon_core.
Reconstruct handler identity from captured actor JSON (handler boundary only).
Required Methods§
Sourcefn reconstruct(&self, actor_json: &str) -> Result<Box<dyn Actor>, IdentityError>
fn reconstruct(&self, actor_json: &str) -> Result<Box<dyn Actor>, IdentityError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".