pub struct EventDrivenGraphProcessor {
pub event_queue: VecDeque<GraphEvent>,
pub node_states: HashMap<usize, NodeState>,
pub processing_stats: EventProcessingStats,
pub energy_tracker: EnergyTracker,
}Expand description
Neuromorphic event-driven graph processor
Fields§
§event_queue: VecDeque<GraphEvent>Event queue for asynchronous processing
node_states: HashMap<usize, NodeState>Node states
processing_stats: EventProcessingStatsEvent processing statistics
energy_tracker: EnergyTrackerEnergy consumption tracking
Implementations§
Source§impl EventDrivenGraphProcessor
impl EventDrivenGraphProcessor
Sourcepub fn process_events(&mut self, current_time: f64) -> Vec<GraphEvent>
pub fn process_events(&mut self, current_time: f64) -> Vec<GraphEvent>
Process events asynchronously
Sourcepub fn add_event(&mut self, event: GraphEvent)
pub fn add_event(&mut self, event: GraphEvent)
Add event to the queue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventDrivenGraphProcessor
impl RefUnwindSafe for EventDrivenGraphProcessor
impl Send for EventDrivenGraphProcessor
impl Sync for EventDrivenGraphProcessor
impl Unpin for EventDrivenGraphProcessor
impl UnsafeUnpin for EventDrivenGraphProcessor
impl UnwindSafe for EventDrivenGraphProcessor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more