pub enum TernMessage {
Send {
agent_id: usize,
trit: i8,
},
Await {
agent_id: usize,
},
Reply {
trit: i8,
},
Error {
msg: String,
},
}Expand description
Wire protocol message.
Variants§
Send
Send a trit message to a local agent’s mailbox.
Await
Execute the agent’s handler with its pending message, return the result.
Reply
Successful reply to an Await.
Error
Error response.
Trait Implementations§
Source§impl Debug for TernMessage
impl Debug for TernMessage
Source§impl<'de> Deserialize<'de> for TernMessage
impl<'de> Deserialize<'de> for TernMessage
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
Auto Trait Implementations§
impl Freeze for TernMessage
impl RefUnwindSafe for TernMessage
impl Send for TernMessage
impl Sync for TernMessage
impl Unpin for TernMessage
impl UnsafeUnpin for TernMessage
impl UnwindSafe for TernMessage
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