pub struct SpawnOptions {
pub id: Option<String>,
pub input: Option<Value>,
pub system_id: Option<String>,
pub sync_snapshot: Option<bool>,
}Expand description
Options for Enq::spawn (XState’s spawn options).
Fields§
§id: Option<String>The child’s id; <src>:<n> when absent.
input: Option<Value>§system_id: Option<String>The key the child is registered under in the system (systemId).
sync_snapshot: Option<bool>Whether the child reports its snapshots to the parent.
Implementations§
Trait Implementations§
Source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
Source§impl Debug for SpawnOptions
impl Debug for SpawnOptions
Auto Trait Implementations§
impl Forget for SpawnOptions
impl Freeze for SpawnOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnsafeUnpin for SpawnOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for SpawnOptions
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