pub enum MessageType {
TaskDelegation,
TaskResult,
ContextRequest,
ContextShare,
CoordinationSignal,
Handoff,
Interrupt,
Heartbeat,
}Expand description
Type of agent message.
Variants§
TaskDelegation
Task delegation request
TaskResult
Result of a delegated task
ContextRequest
Request for context from another agent
Sharing context with another agent
CoordinationSignal
Coordination signal (e.g., ready, waiting)
Handoff
Handoff request
Interrupt
Interrupt signal
Heartbeat
Heartbeat/keepalive
Implementations§
Source§impl MessageType
impl MessageType
Sourcepub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
pub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
Parse from database string representation.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 ComposeSchema for MessageType
impl ComposeSchema for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for MessageType
impl Display for MessageType
Source§impl FromStr for MessageType
impl FromStr for MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
Source§impl ToSchema for MessageType
impl ToSchema for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.