Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

MemorySignal

Enum MemorySignal 

Source
pub enum MemorySignal {
    MemoryStored {
        agent_id: AgentId,
        memory_id: MemoryId,
        memory_class: MemoryClass,
    },
    MemoryRecalled {
        agent_id: AgentId,
        query: String,
        results_count: usize,
    },
    BlockAttached {
        agent_id: AgentId,
        block_id: BlockId,
    },
    BlockDetached {
        agent_id: AgentId,
        block_id: BlockId,
    },
    VerifiabilityChanged {
        agent_id: AgentId,
        memory_id: MemoryId,
        new_stage: VerifiabilityStage,
    },
    ConsolidationCompleted {
        agent_id: AgentId,
        memories_processed: usize,
    },
    IdentityEvolved {
        agent_id: AgentId,
        epoch: u64,
    },
    ConflictDetected {
        agent_id: AgentId,
        memory_a: MemoryId,
        memory_b: MemoryId,
        score: f32,
    },
    ConsensusReached {
        agent_id: AgentId,
        term: u64,
    },
    NodeHeartbeat {
        agent_id: AgentId,
        health: f32,
    },
}
Expand description

MemorySignal - Events emitted by agents for real-time coordination.

Variants§

§

MemoryStored

Memory was stored.

Fields

§agent_id: AgentId

Agent that stored the memory.

§memory_id: MemoryId

Memory identifier.

§memory_class: MemoryClass

Memory class.

§

MemoryRecalled

Memory was recalled.

Fields

§agent_id: AgentId

Agent that performed the recall.

§query: String

Query text.

§results_count: usize

Number of results returned.

§

BlockAttached

Block was attached to agent.

Fields

§agent_id: AgentId

Agent that attached the block.

§block_id: BlockId

Block identifier.

§

BlockDetached

Block was detached from agent.

Fields

§agent_id: AgentId

Agent that detached the block.

§block_id: BlockId

Block identifier.

§

VerifiabilityChanged

Verifiability stage changed.

Fields

§agent_id: AgentId

Agent where change occurred.

§memory_id: MemoryId

Memory identifier.

§new_stage: VerifiabilityStage

New verifiability stage.

§

ConsolidationCompleted

Consolidation cycle completed.

Fields

§agent_id: AgentId

Agent that completed consolidation.

§memories_processed: usize

Number of memories processed.

§

IdentityEvolved

Agent identity evolved (L7).

Fields

§agent_id: AgentId

Agent whose identity changed.

§epoch: u64

New identity version.

§

ConflictDetected

Contradiction detected during reflection (Phase 4.1).

Fields

§agent_id: AgentId

Agent that detected conflict.

§memory_a: MemoryId

Conflicting memory A.

§memory_b: MemoryId

Conflicting memory B.

§score: f32

Contradiction score.

§

ConsensusReached

Consensus was reached on a change (Thing).

Fields

§agent_id: AgentId

Agent that proposed the change.

§term: u64

Term number.

§

NodeHeartbeat

Heartbeat from a cluster node.

Fields

§agent_id: AgentId

Agent sending heartbeat.

§health: f32

System load / health score.

Implementations§

Source§

impl MemorySignal

Source

pub fn agent_id(&self) -> AgentId

Returns the agent_id from any signal variant.

Source

pub fn signal_type(&self) -> &'static str

Returns a string description of the signal type.

Trait Implementations§

Source§

impl Clone for MemorySignal

Source§

fn clone(&self) -> MemorySignal

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MemorySignal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MemorySignal

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for MemorySignal

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,