pub struct InitOptions {
pub input: Option<Value>,
pub id: Option<String>,
pub registry_key: Option<String>,
pub execution_id: String,
pub time: u64,
pub max_steps: usize,
pub observe_system_emitted: bool,
}Expand description
Options for System::initialize.
Fields§
§input: Option<Value>§id: Option<String>The root actor’s id; defaults to the root logic’s id (machine id), else root.
registry_key: Option<String>§execution_id: StringNamespaces effect ids; defaults to system.
time: u64§max_steps: usizeBounds messages, timers and allocations per call (default
DEFAULT_MAX_STEPS).
observe_system_emitted: boolWhether crate::Actor collects every actor’s emitted events from
the start, as XState’s createSystem({ onEmitted }); the system
itself does not read it.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Source§impl Debug for InitOptions
impl Debug for InitOptions
Auto Trait Implementations§
impl Forget for InitOptions
impl Freeze for InitOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnsafeUnpin for InitOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for InitOptions
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