pub struct EntityBytecode {
pub state_id: u32,
pub handlers: HashMap<String, Vec<OpCode>>,
pub entity_name: String,
pub when_events: HashSet<String>,
pub non_emitted_fields: HashSet<String>,
pub computed_paths: Vec<String>,
pub computed_fields_evaluator: Option<Box<dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Send + Sync>> + Send + Sync>>,
}Fields§
§state_id: u32§handlers: HashMap<String, Vec<OpCode>>§entity_name: String§when_events: HashSet<String>§non_emitted_fields: HashSet<String>§computed_paths: Vec<String>§computed_fields_evaluator: Option<Box<dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Send + Sync>> + Send + Sync>>Optional callback for evaluating computed fields
Parameters: state, context_slot (Option
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EntityBytecode
impl !UnwindSafe for EntityBytecode
impl Forget for EntityBytecode
impl Freeze for EntityBytecodewhere
*const u8 is !null: Freeze,
PhantomData<(String, Vec<OpCode>)>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, ())>: Freeze,
PhantomData<String>: Freeze,
*const dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Sync + Send>> + Sync + Send is !null: Freeze,
PhantomData<dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Sync + Send>> + Sync + Send>: Freeze,
impl Move for EntityBytecode
impl Send for EntityBytecode
impl Sync for EntityBytecode
impl Unpin for EntityBytecode
impl UnsafeUnpin for EntityBytecodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Vec<OpCode>)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Sync + Send>> + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Fn(&mut Value, Option<u64>, i64) -> Result<(), Box<dyn Error + Sync + Send>> + Sync + Send>: UnsafeUnpin,
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