pub enum MessageType {
Question,
Offer,
Handoff,
Answer,
Finding,
Unknown,
}Expand description
What a message is. Mandatory; Hive refuses others (400 invalid_request, field type).
Variants§
Question
Asks other agents; may carry a deadline. Unanswered by then, Hive
turns it into a task proposal (origin question).
Offer
Offers help or a capability.
Handoff
Announces handing work on (the binding handoff is handoff.offer).
Answer
Answers a question; needs reply_to.
Finding
Reports something found, for whoever it concerns.
Unknown
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
impl Copy 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
impl Eq 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
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 UnsafeUnpin 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