pub struct Event<E: UserEvent> {
pub init: bool,
pub variables: FxHashMap<BindId, Value>,
pub netidx: FxHashMap<SubId, Event>,
pub writes: FxHashMap<Id, WriteRequest>,
pub rpc_calls: FxHashMap<BindId, RpcCall>,
pub user: E,
}
Expand description
Event represents all the things that happened simultaneously in a given execution cycle. Event may contain only one update for each variable and netidx subscription in a given cycle, if more updates happen simultaneously they must be queued and deferred to later cycles.
Fields§
§init: bool
§variables: FxHashMap<BindId, Value>
§netidx: FxHashMap<SubId, Event>
§writes: FxHashMap<Id, WriteRequest>
§rpc_calls: FxHashMap<BindId, RpcCall>
§user: E
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Event<E>where
E: Freeze,
impl<E> !RefUnwindSafe for Event<E>
impl<E> Send for Event<E>where
E: Send,
impl<E> Sync for Event<E>where
E: Sync,
impl<E> Unpin for Event<E>where
E: Unpin,
impl<E> !UnwindSafe for Event<E>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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