pub struct EnergyGates {
pub low_ceiling: i16,
pub high_floor: i16,
}Expand description
Energy thresholds that gate behavior.
Fields§
§low_ceiling: i16Below this → low-energy action (e.g., read)
high_floor: i16Above this → high-energy action (e.g., write)
Implementations§
Source§impl EnergyGates
impl EnergyGates
Sourcepub const fn sensory_default() -> Self
pub const fn sensory_default() -> Self
Sensory default: low threshold for input reception.
Sourcepub const fn motor_default() -> Self
pub const fn motor_default() -> Self
Motor default: high threshold for output.
Sourcepub const fn memory_default() -> Self
pub const fn memory_default() -> Self
Memory default: low=read, high=write, neutral=exclude.
Sourcepub const fn action(&self, energy: i16) -> InterfaceAction
pub const fn action(&self, energy: i16) -> InterfaceAction
Determine action from energy level.
Trait Implementations§
Source§impl Clone for EnergyGates
impl Clone for EnergyGates
Source§fn clone(&self) -> EnergyGates
fn clone(&self) -> EnergyGates
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 moreSource§impl Debug for EnergyGates
impl Debug for EnergyGates
Source§impl Default for EnergyGates
impl Default for EnergyGates
Source§impl PartialEq for EnergyGates
impl PartialEq for EnergyGates
impl Copy for EnergyGates
impl Eq for EnergyGates
impl StructuralPartialEq for EnergyGates
Auto Trait Implementations§
impl Freeze for EnergyGates
impl RefUnwindSafe for EnergyGates
impl Send for EnergyGates
impl Sync for EnergyGates
impl Unpin for EnergyGates
impl UnwindSafe for EnergyGates
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