pub struct SpawnRequest {
pub name: String,
pub actor_type: ActorTypeId,
pub config: Vec<u8>,
pub generation: u64,
}Expand description
A request to spawn an actor on a target node’s registry (/actor/spawn,
cross-node-actors). The target looks up a factory registered for actor_type,
decodes config, and starts the actor under name.
Fields§
§name: StringThe group name to register the actor under.
actor_type: ActorTypeIdThe actor’s type tag; the target must have a factory registered for it.
config: Vec<u8>postcard-encoded A::Config.
generation: u64Generation for the new instance (bumped on respawn/migration).
Trait Implementations§
Source§impl Clone for SpawnRequest
impl Clone for SpawnRequest
Source§fn clone(&self) -> SpawnRequest
fn clone(&self) -> SpawnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnRequest
impl Debug for SpawnRequest
Source§impl<'de> Deserialize<'de> for SpawnRequest
impl<'de> Deserialize<'de> for SpawnRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpawnRequest
Source§impl PartialEq for SpawnRequest
impl PartialEq for SpawnRequest
Source§impl Serialize for SpawnRequest
impl Serialize for SpawnRequest
impl StructuralPartialEq for SpawnRequest
Auto Trait Implementations§
impl Freeze for SpawnRequest
impl RefUnwindSafe for SpawnRequest
impl Send for SpawnRequest
impl Sync for SpawnRequest
impl Unpin for SpawnRequest
impl UnsafeUnpin for SpawnRequest
impl UnwindSafe for SpawnRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more