Skip to main content

HiveController

Struct HiveController 

Source
pub struct HiveController {
    pub local_node_aid: AID,
    pub current_hive_state: HiveState,
    pub shunter: SovereignShunter,
    pub neural_link: NerveController,
    pub peer_directory: HashMap<AID, HomeostasisScore>,
    pub sync_jitter_ns: u128,
    pub bootstrap_ns: u128,
}
Expand description

The AICENT-NET Core Controller. Responsible for planetary resonance, collective voting, and swarm intelligence.

Fields§

§local_node_aid: AID§current_hive_state: HiveState§shunter: SovereignShunter§neural_link: NerveController§peer_directory: HashMap<AID, HomeostasisScore>§sync_jitter_ns: u128§bootstrap_ns: u128

Implementations§

Source§

impl HiveController

Source

pub fn new(local_aid: AID, nerve: NerveController, is_radiant: bool) -> Self

Creates a new Radiant Hive instance. Triggers the Imperial Gravity Well audit immediately.

Source

pub async fn synchronize_hive( &mut self, pulse: ResonancePulse, ) -> Result<HiveState, String>

RFC-006: Synchronize Hive Aligns the local node with the planetary resonance frequency. Non-Radiant nodes suffer a 10ms “Resonance Lag” (Synchronization Penalty).

Source

pub fn propose_swarm_intent(&self, intent: SwarmIntent)

Source

pub fn update_peer_telemetry(&mut self, peer: AID, score: HomeostasisScore)

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.