pub enum SystemDirective {
SetComponent {
state: StateKey,
entity: EntityRef,
component: String,
value: Value,
summary: String,
},
Emit {
event_type: String,
summary: String,
affected: Vec<EntityRef>,
},
Schedule {
after: SimDuration,
directive: Box<SystemDirective>,
},
EnqueuePluginIngress {
after: SimDuration,
packet_type: String,
priority: i32,
payload: Value,
affected: Vec<EntityRef>,
},
}Variants§
SetComponent
Emit
Schedule
EnqueuePluginIngress
Queues ingress for the issuing plugin. A zero delay is still admitted only at the next boundary cut.
Trait Implementations§
Source§impl Clone for SystemDirective
impl Clone for SystemDirective
Source§fn clone(&self) -> SystemDirective
fn clone(&self) -> SystemDirective
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 SystemDirective
impl Debug for SystemDirective
Source§impl<'de> Deserialize<'de> for SystemDirective
impl<'de> Deserialize<'de> for SystemDirective
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemDirective, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemDirective, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SystemDirective
impl PartialEq for SystemDirective
Source§impl Serialize for SystemDirective
impl Serialize for SystemDirective
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SystemDirective
Auto Trait Implementations§
impl Freeze for SystemDirective
impl RefUnwindSafe for SystemDirective
impl Send for SystemDirective
impl Sync for SystemDirective
impl Unpin for SystemDirective
impl UnsafeUnpin for SystemDirective
impl UnwindSafe for SystemDirective
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