pub enum FieldEvent {
RegionActive {
region: Range<usize>,
energy: u64,
threshold: u64,
},
RegionQuiet {
region: Range<usize>,
energy: u64,
threshold: u64,
},
Convergence {
active_regions: Vec<Range<usize>>,
total_energy: u64,
},
Peak {
region: Range<usize>,
energy: u64,
tick: u64,
},
}Expand description
Event emitted when field activity crosses a threshold
Variants§
RegionActive
A region became active (energy crossed on_threshold from below)
Fields
RegionQuiet
A region went quiet (energy dropped below off_threshold)
Fields
Convergence
Multiple regions active simultaneously (binding opportunity)
Fields
Peak
Peak detected in a region (local maximum)
Trait Implementations§
Source§impl Clone for FieldEvent
impl Clone for FieldEvent
Source§fn clone(&self) -> FieldEvent
fn clone(&self) -> FieldEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldEvent
impl RefUnwindSafe for FieldEvent
impl Send for FieldEvent
impl Sync for FieldEvent
impl Unpin for FieldEvent
impl UnsafeUnpin for FieldEvent
impl UnwindSafe for FieldEvent
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